Skip to Content
avatar image
Former Member

How to create record in Hierarchical table ?

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 02, 2008 at 03:47 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 02:56 PM

    problem resolved according advice

    Add comment
    10|10000 characters needed characters exceeded