on 10-22-2008 1:45 PM
Hi All,
I am trying to update the Taxonomy Attribute Values in MDM
using JAVA API 2.
Using ModifyRecordCommand and using setAttributeValue
method of Record interface , if a user changes value
of any attribute the changed value is reflected in MDM
properly.
But if the user does not select any value for an attribute
i am not able to update the same in MDM.
Any Help will be appreciated!!
Thanks
Namrata
Please check your code. Here is the sample:
If there is a value to update for the attribute it updates with the provided mdmvalue else it will update null.
if (atts<i>.getMdmValue() != null){
record.setAttributeValue(CATEGORY_ID, attsProps.getId(), atts<i>.getMdmValue());
else
record.setAttributeValue(CATEGORY_ID, attsProps.getId(), new NullValue());
}
Hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.