on 09-07-2016 2:57 PM
Hi,
I want to delete Boolean field (make value as blank) in a MDM record via MDM java api, but getting error can not assign String to Boolean field (as I am passing blank String to make it blank).
Can you please suggest, how to make Boolean field as blank ?
Thanks,
Swapneel
Hi Swapneel,
I think you should assign a NullValue to the Boolean Field. Stringvalues will indeed not work.
Kind regards,
Gerwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swapneel,
Actually, I meant assigning a NullValue.NULL, like this:
record.setFieldValue(schema.getFieldId(tableName, booleanfield), NullValue.NULL);
And of course, please do not forget to run the ModifyRecordCommand, otherwise there will indeed be no change. Please let me know if this works for you.
Good luck!
Gerwin
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.