on 09-01-2008 5:25 PM
I want to create record that is child of other record, (in Hierarchical table )
or create on same level as some record.
How to implement this in MDM Java API ?
Hi,
Please find the sample code.
CreateRecordCommand crRec = new CreateRecordCommand(connections);
crRec.setSession(sessionId);
crRec.setRecord(createSet); ---> Record set the values of the Hierarchy table.
crRec.setParentRecordId(parentRecId); ---- > Pass the parent record id.
try
{
crRec.execute();
} catch (CommandException e)
{
e.printStackTrace();
}
The above code will create a record in Hierarchy table under the parent record --- parentRecId
Thanks,
Priya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
problem resolved according advice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it almost that I want.
but task appeared to be else - some record is created, but not in relation to parent record,
so I want to make it child after creating - is it possible ?
Or is it possible to modify AutoID typed field ?
(to delete and re-create record with desired Parent ID)
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.