cancel
Showing results for 
Search instead for 
Did you mean: 

Taxonomy Tree like in MDM Data Manager

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

the method

2. WebTreeNode wtn = <catalogdataobject>.GetResultTree(<search>,<rsd>,<rootid>)

Looks ok but what Search criteria do i need to use to display only the branches that has records attached to it?

Does the Search criteria is used on the source table? and how?

Thanks

Noam