[Project_owners] How to get to the window id?

Neil neil at parkwaycc.co.uk
Mon Apr 26 14:19:36 EDT 2004


HJ wrote:

>    <tree id="WindowTree" class="plain" flex="100" datasources="rdf:window-mediator" 
>          ref="NC:WindowMediatorRoot"
>          onselect="alert(this.id);">
>      <treecols>
>        <treecol id="Name" label="Window" primary="true" flex="3" persist="width hidden"/>
>      </treecols>
>      <template>
>        <rule>
>          <treechildren>
>            <treeitem uri="rdf:*">
>              <treerow>
>                <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
>              </treerow>
>            </treeitem>
>          </treechildren>
>        </rule>
>      </template>
>    </tree>
>
>But I can't seem to get to that id. How do I get to this id?
>  
>
For a content-based tree like yours, use 
tree.contentView.getItemAtIndex(theIndex).id
If you need to change your tree to a rdfliner using 
flags="dont-build-content" then use 
tree.builderView.getResourceAtIndex(theIndex).Value



More information about the Project_owners mailing list