Adobe Dreamweaver Forums



Last 10 THreads :         DIV in Table not working. (Last Post : Murray *ACE* - Replies : 11 - Views : 12 )           »          navigation bar in div (Last Post : jody25 - Replies : 2 - Views : 3 )           »          Disabling menu bars in a browser window (Last Post : Jay Jay - Replies : 6 - Views : 7 )           »          Cannot Connect Remotely to FTP using Dreamweaver CS4 (Last Post : Murray *ACE* - Replies : 15 - Views : 114 )           »          Library is missing names from splitter bar (Last Post : Murray *ACE* - Replies : 10 - Views : 11 )           »          Multiple Netstreams (live feeds) best practices (Last Post : techeye - Replies : 3 - Views : 4 )           »          Dynamic XML Array Push ? (Last Post : Jadeivy - Replies : 0 - Views : 1 )           »          How to make a paypal button? (Last Post : loki2357 - Replies : 0 - Views : 1 )           »          How to align XML loading text to right (Last Post : Boxing Boom - Replies : 8 - Views : 9 )           »          Why is this not working!!! (Last Post : NedWebs - Replies : 10 - Views : 11 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-24-2008, 05:44 AM
nagarjunaakkineni
 
Posts: n/a
Diggs:
Default Combobox with XML

Hi All,
here i have a problem with Comobobox with XML.

My problem is "I have two comboboxes and one XML file".What ever data is there
in the XML file that data i'm getting and put it in both comboboxes but for one
combobox i want to add one element explicitly .

Can u tel me how to do that.........
this is my XML file..

<?xml version="1.0" encoding="UTF-8"?>
<CategoryList>
<CategoryListitems>
<category>Home</category>
</CategoryListitems>
<CategoryListitems>
<category>Sports</category>
</CategoryListitems>
<CategoryListitems>
<category>office</category>
</CategoryListitems>
</CategoryList>

Explicitly i want add the "All" element for one combobox.
this is my MXML file....

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="getCategory.send();">
<mx:Script>
<![CDATA[

[Bindable]
public var categoryList:ArrayCollection;

[Bindable]
public var filterList:ArrayCollection;

private function categoryResult():void
{
categoryList = getCategory.lastResult.CategoryList.CategoryListit ems;
deltaskcategory.dataProvider = categoryList;
//Alert.show("Category list data "+ categoryList);
deltaskcategory.selectedIndex = -1;

filterList = getCategory.lastResult.CategoryList.CategoryListit ems;
//Alert.show("filterlist list data "+ filterList);
filterList.addItemAt(({categoryname:'All'}),0);
categoryGroup.dataProvider = filterList;
}

<mx:HTTPService id="getCategory" url="combo.xml" result="categoryResult(); />
<mx:ComboBox id="categoryGroup" width="100" labelField="category"/>
<mx:ComboBox id="deltaskcategory" width="160" labelField="category"/>
</mx:Application>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-25-2008, 04:02 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Combobox with XML


"nagarjunaakkineni" <webforumsuser@macromedia.com> wrote in message
news:ggdek1$jbt$1@forums.macromedia.com...
> Hi All,
> here i have a problem with Comobobox with XML.
>
> My problem is "I have two comboboxes and one XML file".What ever data is
> there
> in the XML file that data i'm getting and put it in both comboboxes but
> for one
> combobox i want to add one element explicitly .


http://blogs.adobe.com/aharui/2008/0...x_prompts.html


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:52 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk