Re: [AFFUG Discuss] Syntax for Private VAR

2009-02-16 Thread Kit McCormick
Are you wanting the ChartID to hold the value of paramBack2 ?

[Bindable]
private var ChartID : String = chartManagerService.lastResult.charts.paramBack2;


Kit

On Mon, Feb 16, 2009 at 3:55 PM, Frank Griffin fgrif...@prorizon.com wrote:
 I am having problems with the syntax for a Private VAR



 This text field brings back the desired ChartID:



 mx:Text text={chartManagerService.lastResult.charts.paramBack2}/



 I have tried several variations of:



 [Bindable]

 private var ChartID : String =
 {chartManagerService.lastResult.charts.paramBack2};



 But the only thing is brings back is the text of
 {chartManagerService.lastResult.charts.paramBack2} not what it should
 yield (i.e., 210090101).





 What would the proper syntax be?





 Thanks!



 Frank



 -
 To unsubscribe from this list, simply email the list with unsubscribe in the
 subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by FusionLink
 -


-
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




RE: [AFFUG Discuss] Syntax for Private VAR

2009-02-16 Thread Frank Griffin
Thanks, Kit and Atlanta Geek!

This is one of the combinations I tried. When I use this, I don't even
get my Form just a blank screen.

FG



-Original Message-
From: ad...@affug.org [mailto:ad...@affug.org] On Behalf Of Kit
McCormick
Sent: Monday, February 16, 2009 4:05 PM
To: discussion@affug.com
Subject: Re: [AFFUG Discuss] Syntax for Private VAR

Are you wanting the ChartID to hold the value of paramBack2 ?

[Bindable]
private var ChartID : String =
chartManagerService.lastResult.charts.paramBack2;


Kit

On Mon, Feb 16, 2009 at 3:55 PM, Frank Griffin fgrif...@prorizon.com
wrote:
 I am having problems with the syntax for a Private VAR



 This text field brings back the desired ChartID:



 mx:Text text={chartManagerService.lastResult.charts.paramBack2}/



 I have tried several variations of:



 [Bindable]

 private var ChartID : String =
 {chartManagerService.lastResult.charts.paramBack2};



 But the only thing is brings back is the text of
 {chartManagerService.lastResult.charts.paramBack2} not what it
should
 yield (i.e., 210090101).





 What would the proper syntax be?





 Thanks!



 Frank



 -
 To unsubscribe from this list, simply email the list with unsubscribe
in the
 subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by FusionLink
 -


-
To unsubscribe from this list, simply email the list with unsubscribe in
the subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




-
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




Re: [AFFUG Discuss] Syntax for Private VAR

2009-02-16 Thread Kit McCormick
If this works:
mx:Text text={chartManagerService.lastResult.charts.paramBack2}/

and this is in the same mxml file:
[Bindable]
private var ChartID : String = chartManagerService.lastResult.charts.paramBack2;

then the assignment to ChartID will work once you put it in the right spot.

You need to make the assignment elsewhere, such as the handler for the
form's 'creationComplete' event.

http://www.adobe.com/devnet/flex/quickstart/handling_events/


On Mon, Feb 16, 2009 at 4:14 PM, Frank Griffin fgrif...@prorizon.com wrote:
 Thanks, Kit and Atlanta Geek!

 This is one of the combinations I tried. When I use this, I don't even
 get my Form just a blank screen.

 FG



 -Original Message-
 From: ad...@affug.org [mailto:ad...@affug.org] On Behalf Of Kit
 McCormick
 Sent: Monday, February 16, 2009 4:05 PM
 To: discussion@affug.com
 Subject: Re: [AFFUG Discuss] Syntax for Private VAR

 Are you wanting the ChartID to hold the value of paramBack2 ?

 [Bindable]
 private var ChartID : String =
 chartManagerService.lastResult.charts.paramBack2;


 Kit

 On Mon, Feb 16, 2009 at 3:55 PM, Frank Griffin fgrif...@prorizon.com
 wrote:
 I am having problems with the syntax for a Private VAR



 This text field brings back the desired ChartID:



 mx:Text text={chartManagerService.lastResult.charts.paramBack2}/



 I have tried several variations of:



 [Bindable]

 private var ChartID : String =
 {chartManagerService.lastResult.charts.paramBack2};



 But the only thing is brings back is the text of
 {chartManagerService.lastResult.charts.paramBack2} not what it
 should
 yield (i.e., 210090101).





 What would the proper syntax be?





 Thanks!



 Frank



 -
 To unsubscribe from this list, simply email the list with unsubscribe
 in the
 subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by FusionLink
 -


 -
 To unsubscribe from this list, simply email the list with unsubscribe in
 the subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by http://www.fusionlink.com
 -




 -
 To unsubscribe from this list, simply email the list with unsubscribe in the 
 subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by http://www.fusionlink.com
 -





-
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




Re: [AFFUG Discuss] Syntax for Private VAR

2009-02-16 Thread Cameron Childress
On Mon, Feb 16, 2009 at 4:28 PM, Kit McCormick kit.mccorm...@gmail.com wrote:
 [Bindable]
 private var ChartID : String = 
 chartManagerService.lastResult.charts.paramBack2;

This will set the value of
chartManagerService.lastResult.charts.paramBack2, into the variable
called ChartID at the time that it runs.  However, it will not bind
ChartID to chartManagerService.lastResult.charts.paramBack2, which I
think is what you may be looking for.  You should look at creating the
Bindings in the docs, or just use
chartManagerService.lastResult.charts.paramBack2 wherever you'd
normally have used ChartID.

-Cameron

-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell:  678.637.5072
aim:   cameroncf
email: camer...@gmail.com


-
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




RE: [AFFUG Discuss] Syntax for Private VAR

2009-02-16 Thread Frank Griffin
Cameron,

I didn't want to use the whole
chartManagerService.lastResult.charts.paramBack2 because I need to
embed the string it returns into the function below instead of
{myCustIdHere}:

private function returnToMagicHome():void
{
navigateToURL(new
URLRequest(localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=TestPRGNAME
=nav_frameARGUMENTS=-N{myCustIdHere}),_top);
}

I did get the following to work:

private function getResult(event:ResultEvent):void{
  dataCollection = event.result.charts.chart
as  ArrayCollection;

  textChartId.text =
chartManagerService.lastResult.charts.paramBack2;
  updateGrid();
  
}   

As you can see it updates a text field named textChartId and I am
hoping to be able to use the data in that field in the above URLRequest.

Thanks,

Frank

-Original Message-
From: ad...@affug.org [mailto:ad...@affug.org] On Behalf Of Cameron
Childress
Sent: Monday, February 16, 2009 4:33 PM
To: discussion@affug.com
Subject: Re: [AFFUG Discuss] Syntax for Private VAR

On Mon, Feb 16, 2009 at 4:28 PM, Kit McCormick kit.mccorm...@gmail.com
wrote:
 [Bindable]
 private var ChartID : String =
chartManagerService.lastResult.charts.paramBack2;

This will set the value of
chartManagerService.lastResult.charts.paramBack2, into the variable
called ChartID at the time that it runs.  However, it will not bind
ChartID to chartManagerService.lastResult.charts.paramBack2, which I
think is what you may be looking for.  You should look at creating the
Bindings in the docs, or just use
chartManagerService.lastResult.charts.paramBack2 wherever you'd
normally have used ChartID.

-Cameron

-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell:  678.637.5072
aim:   cameroncf
email: camer...@gmail.com


-
To unsubscribe from this list, simply email the list with unsubscribe in
the subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




-
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-




Re: [AFFUG Discuss] Syntax for Private VAR

2009-02-16 Thread Darin Kohles
in Script

[Bindable]
private var chartID:String;

in mxml

mx:Binding source=chartManagerService.lastResult.charts.paramBack2'
destination=chartID' /

mx:Text text={chartID}/

Notice the lower case on variable names, which is the best practice, caps
are reserved for Class names. You should really use a centralized model, as
the above implies that paramBack2 is also Bindable].

On Mon, Feb 16, 2009 at 5:18 PM, Frank Griffin fgrif...@prorizon.comwrote:

 Cameron,

 I didn't want to use the whole
 chartManagerService.lastResult.charts.paramBack2 because I need to
 embed the string it returns into the function below instead of
 {myCustIdHere}:

 private function returnToMagicHome():void
{
navigateToURL(new
 URLRequest(localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=TestPRGNAME
 =nav_frameARGUMENTS=-N{myCustIdHere}),_top);
}

 I did get the following to work:

 private function getResult(event:ResultEvent):void{
  dataCollection = event.result.charts.chart
 as  ArrayCollection;

  textChartId.text =
 chartManagerService.lastResult.charts.paramBack2;
  updateGrid();

}

 As you can see it updates a text field named textChartId and I am
 hoping to be able to use the data in that field in the above URLRequest.

 Thanks,

 Frank

 -Original Message-
 From: ad...@affug.org [mailto:ad...@affug.org] On Behalf Of Cameron
 Childress
 Sent: Monday, February 16, 2009 4:33 PM
 To: discussion@affug.com
 Subject: Re: [AFFUG Discuss] Syntax for Private VAR

 On Mon, Feb 16, 2009 at 4:28 PM, Kit McCormick kit.mccorm...@gmail.com
 wrote:
  [Bindable]
  private var ChartID : String =
 chartManagerService.lastResult.charts.paramBack2;

 This will set the value of
 chartManagerService.lastResult.charts.paramBack2, into the variable
 called ChartID at the time that it runs.  However, it will not bind
 ChartID to chartManagerService.lastResult.charts.paramBack2, which I
 think is what you may be looking for.  You should look at creating the
 Bindings in the docs, or just use
 chartManagerService.lastResult.charts.paramBack2 wherever you'd
 normally have used ChartID.

 -Cameron

 --
 Cameron Childress
 Sumo Consulting Inc
 http://www.sumoc.com
 ---
 cell:  678.637.5072
 aim:   cameroncf
 email: camer...@gmail.com


 -
 To unsubscribe from this list, simply email the list with unsubscribe in
 the subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by http://www.fusionlink.com
 -




 -
 To unsubscribe from this list, simply email the list with unsubscribe in
 the subject line

 For more info, see http://www.affug.com
 Archive @ http://www.mail-archive.com/discussion%40affug.com/
 List hosted by http://www.fusionlink.com
 -





-- 
Darin Kohles
RIA Developer