PDA

View Full Version : using trees with grids with one dataset


counterpoke
09-08-2004, 08:48 PM
Is there a way to have trees and grids share one dataset? I am building a file explorer-type interface, and I would like to use just one dataset to work with the trees and grids.

If you look at the reference files for trees, the datasets are structured like this:
<tree>
<tree field>BLAH</tree field>
</tree>

while the grid fields look like this:

<tree field="BLAH" />
.

My dataset looks like the former, and when i tried the grid with a tag like this:

<grid datapath="sample:/myXML[1]">
<gridtext editable="false" datapath="@noteID"
datatype="number">ID</gridtext>
<gridtext editable="false" datapath="@creationDate"
datatype="number">Date Created</gridtext>
<gridtext editable="false" datapath="@uploadDate"
datatype="number">Date Uploaded</gridtext>
<gridtext editable="false" datapath="@type">File Type</gridtext>
</grid>

my grid is filled with blanks

when i make the grid tag like this:

<grid datapath="sample:/myXML[1]" contentdatapath="note"/>

only the name and end fields show. And I want to see the uploadDate and other fields like that...

The dataset that i've been playing with is attached. Thanks for your help.