Solved!
Created a function:
private function createRepeaterData(label:String, id:String,
required:Boolean, selected:int, dataprovider:Array):void
{
xmlText = <dataprovider></dataprovider>;
for (var item:String in dataprovider)
{
xmlText.appendChild(<info><label>{dataprovider[item].label}</label><data>{dataprovider[item].data}</data></info>);
}
xmlPermissions.appendChild(<combo><label>{label}</label><id>{id}</id><required>{required}</required><selected>{selected}</selected>{xmlText}</combo>);
}
and changed the Repeaters dataProvider to
{rpComboBox.currentItem.dataprovider.info}.
Works fine now!!
--- In [email protected], "kristian_wright2002"
<[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "bhaq1972" <mbhaque@> wrote:
> >
> > just a guess, in your repeater try
> >
> >
> > <mx:ComboBox labelField="data"
> > dataProvider="{rpComboBox.currentItem.dataprovider}" />
> >
>
> Didn't work - just returned an empty combobox. Also, my labels and
> data are different (data is an int I use to query a DB, so it's
> meaningless as a selection choice).
>
> Thanks though!
>
> I've also tried looping through my array and placing values in a string:
>
> for (var item:int=0;item<arrARRAY.length;item++)
> {
>
strText=strText+"<data>"+arrARRAY[item].data+"</data><label>"+arrARRAY[item].label+"</label>";
> }
>
> and substituting {strText} for {arrARRAY} in my XML, but this again
> causes the creation of 1 selection of:
>
>
<data>1</data><label>Value1</label><data>2</data><label>Value2</label>...
>
> At least the values are coming out now though, just all on one line
still!
>
> Any other thoughts?
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/