on 07-04-2008 8:38 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neha!
Thanks a lot for the help!
Edited by: Ravi Verma on Jul 8, 2008 12:55 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.