on 04-27-2006 7:59 AM
Hi
I am trying to use the MDM API to create a Taxonomy Tree.
Can some one let me know what are the steps and methods to generate tree similar to the Taxonomy Search Tree in the Data Manager.
In the Data Manager the tree show only branches that have Master Table records associated to it.
Thanks
Noam
Hi,
You can use the following methods:
1. WebTreeNode wtn = <catalogdataobject>.GetHierarchy(<tablename>,<nodeid>);
2. WebTreeNode wtn = <catalogdataobject>.GetResultTree(<search>,<rsd>,<rootid>)
Once you have the WebTreeNode object, use the WebTreeNode's GetChildren method.
You have to write a recursive function to get all the levels in a particular node(i mean till you reach leafnode).
As you know the above WebTreeNode builds a object in a tree like structure.
For presentation purpose you can use the different web scenarios to show the tree object based on the data you get it in WebTreenode object.
Hope this helps.
Let me know if you need additional information.
Thanks and Regards
Subbu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.