This is the code that does not work. The code required that I have the ID hard-coded in the checkbox tag.
<mx:HBox id="myHBox">
<mx:Repeater id="checkBoxRepeater"
dataProvider="{getItemsResult.lastResult}">
<s:CheckBox label="{checkBoxRepeater.currentItem.itemName}"
id="{checkBoxRepeater.currentItem.itemID}"/> <!--FB error here-->
</mx:Repeater>
</mx:HBox>
If I type a string for id
, I get my array of checkboxes without problem and the labels are all fine. I need to get the id dynamic so that I can send the ID (itemID) bound to an itemName to the server.
Any suggestions?