I am having trouble filling in a combobox with my
remoteobject. Im thinking I need to retrieve the RO into an
ArrayCollection. but im not sure how this would look. Can someone
show me a sample? In my app if I hard code an array with data and
labels it works fine.
I have a RO like:
<mx:RemoteObject id="Brands" destination"COLDFUSION" source="Inv" showBusyCursor="true"/>
I have a ComboBox:
<mx:comboBox id='brandfilter' dataprovider="{Brands.Brands.data}"/>
I have a CFC:
<cffunction name="Brands" access="remote" returnType="query" output="false">
<cfquery name="Brands" datasource="myDatasource">
Select distinct brandid as data , branddesc as label
From Inv
</query>
<cfreturn Brands>
</cffunction>
I have a RO like:
<mx:RemoteObject id="Brands" destination"COLDFUSION" source="Inv" showBusyCursor="true"/>
I have a ComboBox:
<mx:comboBox id='brandfilter' dataprovider="{Brands.Brands.data}"/>
I have a CFC:
<cffunction name="Brands" access="remote" returnType="query" output="false">
<cfquery name="Brands" datasource="myDatasource">
Select distinct brandid as data , branddesc as label
From Inv
</query>
<cfreturn Brands>
</cffunction>