The script below should iterate to the the serial numbers in a transaction.
var serial = nlapiGetLineItemValue('item', 'serialnumbers', 1);
alert(serial);
seriallist = serial.split(String.fromCharCode(5));
for (var j=0; j<seriallist.length; j++)
{
alert(seriallist[j].toString());
}
alert(serial);
seriallist = serial.split(String.fromCharCode(5));
for (var j=0; j<seriallist.length; j++)
{
alert(seriallist[j].toString());
}
No comments:
Post a Comment