PDA

View Full Version : Datagrid values


rhythmdevil
10-15-2004, 12:27 AM
Hi all...

I'm using the XML connector, dataset and datagrid components to load data from an XML file and all of my bindings and such are great...the grid is populated. The problem I'm having is that I can't seem to find the array values once they're imported. For instance, my xml looks like this:

<reviews>
<record artist="Radiohead" album="OK Computer" Grade="A" URL="http://www.somesite.com" />
<record artist="Radiohead" album="OK Computer" Grade="A" URL="http://www.somesite.com" />
</reviews>

Once my components are set up, my bindings are done and the data's displaying, how do code a button to grab the URL value from the array and use getURL to pop up a new window with the data from the array? Any help is appreciated. Thanks...

annexion
10-15-2004, 03:07 AM
Something like:

getURL(dataGrid.selectedItem.URL);

rhythmdevil
10-15-2004, 05:53 PM
I try that and I get an error. I tried tracing it...

trace(dataGrid.selectedItem.URL);

to no avail. Any other way to do it? Is there a problem with my xml or databinding? Any help is appreciated..