RE: [AFFUG Discuss] Syntax for Private VAR

2009-02-17 Thread Frank Griffin
My {chartID} is now being populated as it should. However, I am still
having some problems with the URLRequest syntax. The {chartId} is not
being translated but is being taken literally. I think this is due to it
being between the double quotes. I tried various ways of moving it out
of the double quotes but I keep getting errors.

Any ideas?

Thanks!!!

Frank


My URL Result:

http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=testPRGNAME=nav_
frameARGUMENTS=-N{chartId}


My URLRequest:

navigateToURL(new
URLRequest(http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=test;
PRGNAME=nav_frameARGUMENTS=-N{chartId}),_top);



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

Well I dont think there is any issue with replacing myCustIdHere with
chartManagerService.lastResult.charts.paramBack2 as long as you put it
in the {} brackets.

You could also just create a function that all it does is return
chartManagerService.lastResult.charts.paramBack2 and embed that
inside the {} . Make sure you include the () after the function name.


-
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-17 Thread Douglas Knudsen
without reading the whole thread...got to eat some grub!...so, I maybe way
off, but why are you using binding at all here? Just concatenate, eh?

navigateToURL(new
URLRequest(http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=test;
PRGNAME=nav_frameARGUMENTS=-Nhttp://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=testPRGNAME=nav_frameARGUMENTS=-N%7BchartId%7D
+ chartId ),_top);

Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


On Tue, Feb 17, 2009 at 11:41 AM, Frank Griffin fgrif...@prorizon.comwrote:

 My {chartID} is now being populated as it should. However, I am still
 having some problems with the URLRequest syntax. The {chartId} is not
 being translated but is being taken literally. I think this is due to it
 being between the double quotes. I tried various ways of moving it out
 of the double quotes but I keep getting errors.

 Any ideas?

 Thanks!!!

 Frank


 My URL Result:

 http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=testPRGNAME=nav_
 frameARGUMENTS=-N{chartId}http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=testPRGNAME=nav_%0AframeARGUMENTS=-N%7BchartId%7D


 My URLRequest:

 navigateToURL(new
 URLRequest(http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=test;
 PRGNAME=nav_frameARGUMENTS=-N{chartId}http://localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=test%0APRGNAME=nav_frameARGUMENTS=-N%7BchartId%7D
 ),_top);



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

 Well I dont think there is any issue with replacing myCustIdHere with
 chartManagerService.lastResult.charts.paramBack2 as long as you put it
 in the {} brackets.

 You could also just create a function that all it does is return
 chartManagerService.lastResult.charts.paramBack2 and embed that
 inside the {} . Make sure you include the () after the function name.


 -
 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
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