Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
timeitem sublist count in beforeLoad
I have a serverscript that runs on beforeLoad against a project(job) record.
Trying to count the number of rows under the time tracking tab.
below is the code...
function timeTrackingLines()
{
var record = nlapiGetNewRecord();
var lineCount = record.getLineItemCount('timeitem');
nlapiLogExecution("debug", "time tracking", "time count : " + lineCount);
return true;
}
The above code returns lineCount = -1 where there are 8 lines.
Why is this not giving the correct output? does -1 mean there are no sublist of timeitem?
0