I have created a tree based on a datasource defininion created with this query:
The binding of the tree is not bi-directional. In other words, if you query a datasource, a tree bound to that datasource will not update its data.
In order to show new nodes in a tree, the best way is to use the
In you case, after you set the bind variables to their correct values, call this API for the parent node of the nodes you want to refresh. (The in_nodekey_tx should be the node key of the parent node.) This API will remove the current child nodes of the parent node, run the query of the datasource and create new child nodes for each row it retrieves from the datasource under the parent node you provided as the input parameter.
To refresh the top level nodes, simple pass null as the in_nodekey_tx input parameter.
Hope this helps.
Thank you very much Yalim, that solved my problem.
answered 26 Jun '13, 06:11