Hi pals,

In my application I have a help feature it permits to display help text if
user requests for. Is a multilang application. My initial idea to implement
this feature is to create a XML file as follows:

<help_file>
      <obj label="screen1">
            <field label="field11">
                  <lang1>help_text_lang11</lang1>
                  <lang2>help_text_lang12</lang2>
            </field>
            <field label="field12">
                  <lang1>help_text_lang1</lang1>
                  <lang2>help_text_lang2</lang2>
            </field>
      </obj>
      <obj label="screen2">
            <field label="field21">
                  <lang1>help_text_lang21</lang1>
                  <lang2>help_text_lang22</lang2>
            </field>
            <field label="field22">
                  <lang1>help_text_lang21</lang1>
                  <lang2>help_text_lang22</lang2>
            </field>
      </obj>
</help_file>

In my code:

<mx:Model id="helpList" source="../xml/help_file.xml"/>

..

<mx:ComboBox id="object_list" backgroundColor="#FFFFFF" cornerRadius="0"
                  dataProvider="{helpList.obj}" width="180"
                  change="selectFields(event)" initialize="sort();"/>

In selectFields function I create dataprovider for 2nd combo:

<mx:ComboBox id="field_list" backgroundColor="#FFFFFF" cornerRadius="0"
                  width="180"
                  change="display_help(event)" initialize="sort();"/>

My objective is to have 2 dropdown list as shown in the figure below. Where
"objecte" contains the obj nodes from the XML above, i.e.
{screen1,screen2}. Once selected the "objecte" the "camp" list should be
filed with the appropiated fields {field11,field12} or {field21,field22}.
Finally when user selects field the help text is displayed in the textArea
"Descripcio". I´m not able to display the contents of 2nd list once the
first is selected. Basically I don´t know how to manipulate(access nodes)
the XML contents using ActionScript API (Array). I suppose this is quite
enough to clear my problem.
Grateful if somebody could help me?. Thanks.

  (Embedded image moved to file: pic11538.pcx)


Isaac Bibás


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> 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/
 

Attachment: pic11538.pcx
Description: Binary data

Reply via email to