on 04-29-2014 4:36 PM
During create or update operation using MDM Java API, how can we set a field value of type currency?
Problem solved: Currency field type values can accept DoubleValue, so we can set it as:
TupleDefinitionSchema tds = context.getRepositorySchema().getTupleDefinitionSchema(context.getRepositorySchema().getTupleDefinition("tupleCode").getId());
TupleValue tvAltUom = MdmValueFactory.createTupleValue();
tvAltUom.setFieldValue(tds.getFieldId("MDM_PRICE"), value == null ? NullValue.NULL : new DoubleValue(value
.doubleValue());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.