cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate boolean fields using MDM Java API's

Former Member
0 Kudos

Hi Experts!

I am trying to populate Boolean fields in main table of my repository using MDM JAVA API SP 05 patch 2.

Problem is i am geting syntax error for any value that i try to put in.

Please provide me sample code for the purpose.

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Here is the code snippet to populate boolean values from Main Table in the Repository:

Populating boolean values from Main Table in the Repository:

wdContext.currentNodeElement().setABC(Boolean.valueOf((strABC).toString()).booleanValue());

Putting boolean values in the main table:

Record objEmptyRecord = RecordFactory.createEmptyRecord(new TableId(strTableId));

boolean bFieldValue = ((Boolean)strABC).booleanValue();

objEmptyRecord.setFieldValue(new FieldId(strFieldId),new

BooleanValue(bFieldValue));

Hope this helps.

Regards

Neha Sharma

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Neha!

Thanks a lot for the help!

Edited by: Ravi Verma on Jul 8, 2008 12:55 PM