Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / October 2005



Tip: Looking for answers? Try searching our database.

xml to combobox, combobox to listbox, listbox  to details

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mygraneboy - 14 Oct 2005 23:57 GMT
i am going out of my mind looking for a tutorial

i am able to use a xml document and the xml connector component to populate a
pulldown menu, i would like to know how i can use the same xml info (now that
it is loaded) and populate the listbox with a set of titles based on the
combobox selection. these titles would then be clickable and load in the
details of selected xml dataset. into several fileds including an image and
description field i can get all of the stuff figured out after the repopulating
of the listbox but until then i am stuck.

i find it pretty amazing that i was unable to find much on this topic as it
seems like a pretty common thing to try and accomplish, most photoalbums use
similar functionality

thanks for any help or direction
Dimitar - 15 Oct 2005 04:42 GMT
You won't find many examples on advanced and really useful and competitive
ideas. This is a special policy of Macromedia :-)

Don't forget the common idea is if you want to much programming freedom, then
get Macromedia Flex. Flash is great but when you stat to ask yourself how to
use it in special occasions, then you are on your own. Seriously, sometimes I
really think this, based on the things Macromedia do since a long time.

Why? Ask MM. Except some of their late examples, all the other ones coming
even from them are the easy and simple ways to place a component, or bind data
with connectors. Take a look of so many Flash books, 98% garbage. Good stuff
for simple solutions. When need flexibility, should read all away in Internet
but Macromedia.

Anyway. My personal suggestion or your problem is get rid of the useless Xml
Connector and start learning XML / XMLNode objects and how to access them
through classes and dispatching events.

And something more. What exactly do you mean by xml dataset? ASP.NET
server-side one, visually placed on the timeline DataSet or dynamically created
piece of ode?

To bind the things together and to expand them in future, create a class with
some basic abstract methods to do all the common work and then execute them for
the different components. Say List and Combo can access one and the same method
of a class to extract some XML data), etc.

Explain in detail and the exact project and then I can write some code to
solve this out.

Thanks,

Dimitar
steveInCO - 27 Oct 2005 18:22 GMT
Basically, if I'm understanding you, is that you want to filter the xml results
w/ a combobox. The way I've always gone about this is to bind the XML connector
to 2 separate datasets.

-dataset1 bound to the XML connector and your combobox
-dataset2 bound to the XML connector and your listbox

1) add a change event listener to the combobox
2) in the change handler, filter dataset2 (the listbox's dataset) based on the
selection from the combobox. Because of the binding of this dataset to the
listbox, the listbox display will update w/ the filtered values.

I've successfully used this method as the basis to do some pretty complex
filtering. For example, filtering data in apps with many users in different
divisions/regions of an organization.

Choose Division (filters region combobox dataset) > Choose Region (filters
employee combobox dataset) > Choose Employee (filters the main dataset and
displays that employees info in a datagrid)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.