[Project_owners] How to select new <treerow/>?

Neil Deakin enndeakin at sympatico.ca
Fri Sep 9 15:32:30 EDT 2005

Eric Jung wrote:

>Anyone? I also posted this here:
>but haven't gotten any replies. To rephrase the problem: I have an
>RDF-backed <tree/>. I add a new resource to the RDF which correctly
>displays in the tree. Now how can I select/highlight that new item in
>the tree?
>Would appreciate any help--even donate cash to another project in
>return :)

var item = document.getElementById(resource_uri);
var idx = tree.view.getIndexOfItem(item);
if (idx >= 0) tree.view.selection.select(idx);

/ Neil

More information about the Project_owners mailing list