Yes, but without the @, since your dataProvider item is an Object, not XML.

 

I’d advise against binding, since it is hard to debug.  Set the url in a 
changeHandler function.  You are going to need to call send() in there anyway.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of TCash21
Sent: Monday, March 19, 2007 3:26 PM
To: [email protected]
Subject: [flexcoders] Re: error with HTTPService

 

Did you try [EMAIL PROTECTED]

--- In [email protected] <mailto:flexcoders%40yahoogroups.com> , 
"danj520" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I'm trying to bind the returned results from a ComboBox to a url in
> HTTPService. Flex returns a "Value must be quoted" error with this
> statement:
> 
> <mx:HTTPService id="productService" url="{appName.SelectedItem.url}"
> result="productServiceResultHandler(event)"
> showBusyCursor="true"/>
> 
> Here's my code for theComboBox.
> 
> <mx:ComboBox id="appName" styleName="glass" width="161"
> change="productService.send();">
> <mx:dataProvider>
> <mx:Array>
> <mx:Object label=”12.5V HF SSB”
> url=”data/125-hf-ssb.xml?filter=12vhgssb”/>
> <mx:Object label=”28V HF SSB”
> url=”data/28v-hf-ssb.xml?filter=28vhfssb”/>
> <mx:Object label=”50V HF SSB”
> url=”data/50v-hf-ssb.xml?filter=50vhfssb”/>
> <mx:Object label=”Cell Basestation”
> url=”data/cell-basestation.xml?filter=cellbasestation”/>
> <mx:Object label=”Cellular Mobile”
> url=”data/cellular-mobile.xml?filter=cellularmobile”/>
> <mx:Object label=”DME TACAN”
> url=”data/dme-tacan.xml?filter=dme-tacan”/>
> 
> </mx:Array>
> </mx:dataProvider>
> </mx:ComboBox>
> Can't seem to find much in the docs about this, except that "url" must
> be quoted. What am I doing wrong? Thanks in advance.
>

 

Reply via email to