cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert a record into hierarchy table

Former Member
0 Kudos

Hi All,

How to insert a record into a hierarchy table in MDM using mdm-api-5.5.64.105.

I have a hierarchy table with text fields

name accountcode, keycode, countrycode, groupcode and accountcode.

Node 1 has accoutcode, node 2 has key code, node 3 has country code and node4 has group code and node 5 has accountcode.

Since this is a hierarchy table,

1. first I have to create a parent record with name and

2. then search this table with accountcode if I dont find it create a child node and assign it to parent, otherwise get the hierarchy node

3. then search for country code and so on....until node 5.

Please give some direction on this, if you have any sample that helps.

Thanks

-Sai

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gurus,

Anyone have a sample code for the above problem, I have to insert my record at node 5. I need some sapmle code or pointers to how to get my node 4 with search criteria. and assigning it to parent node. Any help will be appreciated.

-Sai