One convenient aspect of XML is that it is fully dynamic.  You can add nodes
and attributes at will.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of kristiansalvesen
Sent: Tuesday, August 11, 2009 11:41 AM
To: [email protected]
Subject: [flexcoders] ComboBox and XML DataProvider

 

  

I am trying to create an application that uses several ComboBoxes for users
to rate different topics in a range of Low to High. 

I will save and store the user's selection in an XML file. The user's do
this excericise once a quarter/month (or regular basis) and the application
will recieve an XML file with the user's last selected value. So the XML
file will be in a form similar to this:

<topic>
<user>
<id>1</>
<var1>Low</var1>
<var2>High</var2>
<var3>Medium</var3>
<var4>Low-Medium</var4>
<var5>Medium-High</var5> 
</user>
<user>
<id>2</>
<var1>Low</var1>
<var2>High</var2>
<var3>Medium</var3>
<var4>Low-Medium</var4>
<var5>Medium-High</var5> 
</user>
</topic>

the shape of the incoming XML (shape above) can not be changed. The XML file
can obviously be manipulated in AS/Flex. 

Anyway, what i would like is to have each ComboBox show the value in the XML
file above at startup/default/initializaton but when clicking show all other
possible values from Low to High, so that the user may change his rating of
that particular variable. These values do not exist in the XML above that is
receieved so i would need to have some way of adding them to the XML file or
use a different XML file as the ComboBox dataprovider and extract the
selectedIndex value based on the XML above or somethign like that. Anyway it
wasn't clear to me how to do this and any help is greatly appreciated. 

Thank you



Reply via email to