Jordan Patterson
04/07/2020, 4:28 PMThe field expectedreceiptdate contained more than the maximum number ( 5 ) of characters allowed.
What am I missing here? Why would Expected Receipt Date only allow 5 characters? I even log before I set the field to make sure I don't have my value incorrectly defined somewhere or something like that. Nonetheless, I am confused. Any ideas?Sandii
04/07/2020, 4:39 PMN/format
module, specifically format.format
and format.parse
on your data. One of them will set properly and one will not, I belive format.parse
is what you need here.Jordan Patterson
04/07/2020, 4:40 PMクリスピポテト
04/07/2020, 5:03 PMJordan Patterson
04/07/2020, 5:11 PMJordan Patterson
04/07/2020, 5:12 PMdateValue = format.format({ type: format.Type.DATE, value: new Date() });
po.setSublistText({
sublistId: "item",
fieldId: "expectedreceiptdate",
line: i,
text: dateValue
});
battk
04/07/2020, 8:23 PM