Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Data Services
Viewing all articles
Browse latest Browse all 58696

RemoteObject / ComboBox

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

Viewing all articles
Browse latest Browse all 58696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>