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 / March 2006



Tip: Looking for answers? Try searching our database.

Column count for list box won't change

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
almcnicoll - 30 Mar 2006 16:47 GMT
I'm using a static XML set to populate a list box. Because I want to control
which columns (fields) are visible and which rows (records) are displayed, I'm
parsing the XML into an array of objects with the required properties. An
example of the array could be:

dp ==

This displays the data just as I want it.
Then, depending on filter/sort combos within the movie, I want to change the
display. The user has filtered/sorted on columns Matriculation Year and Status
(both of which are in the original static XML). The newly generated array looks
like this:

dp ==

However, when I set

myListComponent.dataProvider = dp;

the number of columns remains fixed at one. I can only view the FullName and
not MatriculationYear or Status. I looked through LiveDocs and through the
actionscript class "List.as" in search of a method that would cause it to
reevaluate the column count, but have come up dry. Any help would be really
appreciated...

Thanks,

Al McNicoll
Integritec Ltd
almcnicoll - 30 Mar 2006 16:54 GMT
Answered own question:

Calling
listComponent.init();
seems to work. It hadn't worked before because I was trying to call
listComponent.dataProvider.init(), which was a stupid mistake to have made!
 
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.