Just a thought, can we determine if a sublist item...
# suitescript
t
Just a thought, can we determine if a sublist item is remove using context?
NVM. in order for me to resolve this I just loop on the sublistitem and get the value of the fields
Copy code
for (let i = 0; i <= totalLineCount; i++) {

    if (context.fieldId === 'custrecord_local_hours') {
        let getLineItemNoOfHrs = getCurrSublistVal(context, context.fieldId, context.sublistId);
        totalHrs = parseInt(totalHrs) + parseInt(getLineItemNoOfHrs);
    }
}