dennysutanto
10/21/2021, 3:55 AMvar poLineCount = currentRec.getLineCount({
sublistId: 'item'
});
log.debug('poLineCount', poLineCount);
for (var j = 0; j < poLineCount; j++) {
currentRec.selectLine({
sublistId: 'item',
line: 0
})
currentRec.removeLine({
sublistId: 'item',
line: 0
});
}
SSS_INVALID_SUBLIST_OPERATION CurrentRecord.selectLine
is my approach correct ? did i miss something
thanksehcanadian
10/21/2021, 4:11 AMfor (let j = poLineCount - 1; j >= 0; j--) {removeLine...}
ehcanadian
10/21/2021, 4:13 AMcurrentRec.removeLine({sublistId: 'item', line: j})
dennysutanto
10/21/2021, 4:15 AMdennysutanto
10/21/2021, 4:16 AMdennysutanto
10/21/2021, 4:25 AMdennysutanto
10/21/2021, 4:42 AM