cancel
Showing results for 
Search instead for 
Did you mean: 

checkout issue

Former Member
0 Kudos

Hi All,

I'm using MDM 5.5 sp16. And MDM java APIs with webdynpro java.

I am trying to check out the record in non exclusive mode. But the record remain protected even after checkout of record.

And the modification of record reflects only after checkin.

could any body please provide your valuable pointers.

Thanks and Regards,

Revathy Madhavan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Revathy

For changing a record which is checked out the use has to join the checkout process.

This is irrespective of whether we do checkout exclusive or non exclusive.

So first you need to join the checkout, there must be APIs for this.

best regards

Ravi Kumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sudheendra,

Thank for your reply.

I'm using same code to check out a record, but still it making a record protected.

But modification of record is reflected only after check in of record.

Thanks and Regards,

Revathy Madhavan.

Former Member
0 Kudos

Hi Revathy,

check the below code snippet on how to checkout a record . setExclusive option allows you to checkout exclusive if set true and non exclusive if set false.

CheckoutRecordsCommand objCheckOutRecord = new CheckoutRecordsCommand(connection);

objCheckOutRecord.setSession(usersession_id);

objCheckOutRecord.setTableId(new TableId(strTableID));

objCheckOutRecord.setRecordIds(new RecordId[]{new RecordId(strRecordID)});

objCheckOutRecord.setExclusive(bExclusiveCheckOut);

try

{

objCheckOutRecord.execute();

}

catch(CommandException e)

{

System.out.println("error in check out")

}

Regards