wadam1230
03-22-2009, 08:01 PM
Hi all,
I haven't touched Flash in about 3-4 years and just spent my first week in FlexBuilder3. I am primarily a .net programmer.
I am bringing in values from a .net assembly, a product configurator, and I want to be able to display the list of currently added items to the configuration down the right hand side of the window (with the ability to "X" off certain items). I'm kinda stumbling through various ways to do this and nothing is working out right.
Right now I am building an Array of a simple object (name, value, category, etc) for each category I want to seperate the option by. Basically I want a heading with the indented options below. I have a Form with a heading for each category and the a repeater that binds to my simple object (formitem and a label).
When I click "Go" the first pass I see cat1 with values, but nothing in the other categories. click again, I get cat1 with vals and the cat2 with vals from cat1 and cat2, etc.
Any reason this would behave that way? The arrays are populated correctly when I debug. Am I doing this the "hard way" or is there some limitation I am not aware of? Thanks for taking the time.
Here is the jsst. of my form -
<mx:form ...>
<mx:FormHeading name="paperHead" label="Paper Choice"/>
<mx:Repeater id="papRepeater" tabProvider= "{myQuote.detailPaperArray}" >
<mx:FormItem label= "{papRepeater.currentItem.descriptor}">
<mx:Label text="{papRepeater.currentItem.valName}" />
</mx:FormItem>
</mx:Repeater>
<mx:FormHeading label="Tabs"/>
<mx:Repeater id="tabRepeater" dataProvider="{myQuote.detailTabArray}" >
<mx:FormItem label="{tabRepeater.currentItem.descriptor}">
<mx:Label text="{tabRepeater.currentItem.valName}" />
</mx:FormItem>
</mx:Repeater>
....etc
I haven't touched Flash in about 3-4 years and just spent my first week in FlexBuilder3. I am primarily a .net programmer.
I am bringing in values from a .net assembly, a product configurator, and I want to be able to display the list of currently added items to the configuration down the right hand side of the window (with the ability to "X" off certain items). I'm kinda stumbling through various ways to do this and nothing is working out right.
Right now I am building an Array of a simple object (name, value, category, etc) for each category I want to seperate the option by. Basically I want a heading with the indented options below. I have a Form with a heading for each category and the a repeater that binds to my simple object (formitem and a label).
When I click "Go" the first pass I see cat1 with values, but nothing in the other categories. click again, I get cat1 with vals and the cat2 with vals from cat1 and cat2, etc.
Any reason this would behave that way? The arrays are populated correctly when I debug. Am I doing this the "hard way" or is there some limitation I am not aware of? Thanks for taking the time.
Here is the jsst. of my form -
<mx:form ...>
<mx:FormHeading name="paperHead" label="Paper Choice"/>
<mx:Repeater id="papRepeater" tabProvider= "{myQuote.detailPaperArray}" >
<mx:FormItem label= "{papRepeater.currentItem.descriptor}">
<mx:Label text="{papRepeater.currentItem.valName}" />
</mx:FormItem>
</mx:Repeater>
<mx:FormHeading label="Tabs"/>
<mx:Repeater id="tabRepeater" dataProvider="{myQuote.detailTabArray}" >
<mx:FormItem label="{tabRepeater.currentItem.descriptor}">
<mx:Label text="{tabRepeater.currentItem.valName}" />
</mx:FormItem>
</mx:Repeater>
....etc