Re: [flexcoders] xml-combobox
Thanks, Manish. Isaac Bibás Forado Manish Jethani [EMAIL PROTECTED]Para: flexcoders@yahoogroups.com mail.comcc: Asunto: Re: [flexcoders] xml-combobox 14/04/2005 00:31 Por favor, responda a flexcoders On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: mx:ComboBox id=object_list backgroundColor=#FF 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=#FF cornerRadius=0 width=180 change=display_help(event) initialize=sort();/ [snip] I would simply use data binding to set this up. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Model id=model root items label=item1 recordone/record recordtwo/record /items items label=item2 recordthree/record recordfour/record /items /root /mx:Model mx:ComboBox id=cb1 dataProvider={model.root.items} / mx:ComboBox id=cb2 dataProvider={cb1.selectedItem.record} / /mx:Application -- [EMAIL PROTECTED] http://manish.revise.org/ 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 the Yahoo! Terms of Service. 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/
[flexcoders] xml-combobox
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 lang1help_text_lang11/lang1 lang2help_text_lang12/lang2 /field field label=field12 lang1help_text_lang1/lang1 lang2help_text_lang2/lang2 /field /obj obj label=screen2 field label=field21 lang1help_text_lang21/lang1 lang2help_text_lang22/lang2 /field field label=field22 lang1help_text_lang21/lang1 lang2help_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=#FF 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=#FF 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/ pic11538.pcx Description: Binary data
Re: [flexcoders] xml-combobox
On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: mx:ComboBox id=object_list backgroundColor=#FF 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=#FF cornerRadius=0 width=180 change=display_help(event) initialize=sort();/ [snip] I would simply use data binding to set this up. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Model id=model root items label=item1 recordone/record recordtwo/record /items items label=item2 recordthree/record recordfour/record /items /root /mx:Model mx:ComboBox id=cb1 dataProvider={model.root.items} / mx:ComboBox id=cb2 dataProvider={cb1.selectedItem.record} / /mx:Application -- [EMAIL PROTECTED] http://manish.revise.org/ 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/