Edgar Valdés
08/22/2022, 8:19 PMsetSublistValue
. But when creating (not editing) a Customer Refund, I get setSublistValue is not a function
. Why?
Any help would be great.Edgar Valdés
08/22/2022, 8:19 PMfor (var k = 0; k < customerRefundRecord.getLineCount('apply'); k++) {
if(customerRefundRecord.getSublistValue({sublistId: 'apply', fieldId: 'doc', line: k} == creditMemoID)){
try {
customerRefundRecord.setSublistValue({sublistId: 'apply', fieldId: 'amount', line: k, value: totalPayment})
} catch (e) {
console.log(e);
}
break;
}
}
Mike Robbins
08/22/2022, 10:36 PMdynamic
mode so you'll need to use the .selectLine()
and setCurrentSublistValue()
versions.Edgar Valdés
08/22/2022, 11:48 PMZoran R-DATAGRAM
08/23/2022, 6:35 AM