on 2015 Jul 16 4:50 AM
Hi
I use code like this:
doc.getFieldMetadata("DELIVERY_TERM_LOCATION").set(doc, "test_incoterm_location");
after save value haven't change
What I do worng ?
Thank you
Sujirach
Request clarification before answering.
Hello Sujirach,
The code you are using is correct, so the problem is somewhere else.
In what script do you have this code?
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sujirach,
I just remembered that the Delivery Term fields on the MA are actually TRANSIENT. This means that you will not be able to directly set those field values.
To change a Delivery Term (incoterm) you will have to use something like:
// example to change first
delTermColl = doc.getCollectionMetadata("DEL_TERM_COLLN").get(doc);
delTermLine = delTermColl.get(0);
delTermLine.setLocation("test_incoterm_location");
Regards,
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sujirach,
Try to execute below syntax:
doc.getFieldMetadata("DELIVERY_TERM_LOCATION").set(doc, test_incoterm_location);
This will solve your issue.
Regards,
Vignesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.