Pass checkbox value to database?


i have checkbox group of genres retreived database. each genre has corresponding genreid. when user checks related genres, need value (genreid) passed database. considering checkbox object doesnt have value property, how can pass value? thanks!

<mx:remoteobject
id="rogenres"
destination="coldfusion"
showbusycursor="true" source="movies.mgenresgateway"
fault="alert.show(event.fault.faultstring, 'error');">
<mx:method name="getall" result="genresreceived(event)" />
</mx:remoteobject>

[bindable]
public var genres:arraycollection = null;

private function genresreceived(event:resultevent):void {
genres = new arraycollection();
genres.source = event.result array;
}

<mx:repeater id="dp" dataprovider="{genres}">
<mx:checkbox label="{dp.currentitem.genre}"/>
</mx:repeater>

check box has selected member use that


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support