Different question, anybody have any working examp...
# suitescript
a
Different question, anybody have any working example of how to read data from multiselect, add one element and write the new data-set back to the multiselect?
e
@alien4u I would expect @NElliott’s code to work:
Copy code
var linkedPOs = woRec.getValue(...) || [];
linkedPOs.push(contextValue.poId);
woRec.setValue({..., value: linkedPOs});
getValue
should return an Array for a Multiselect, and
setValue
should accept an Array for a Multiselect
There are no
getValues
or
setValues
in 2.0