Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

suitescript get lineitemcount

function request(request, response)
{
var form = nlapiCreateForm('myform');
var list = form.addSubList('results', 'staticlist', 'My Sublist', 'resultsTab');
list.addField("rownum","text","#");

var i=1;
for(var i=1; i< 10; i++ )
    list.setLineItemValue("rownum", i, "val"+i);

var count = list.getLineItemCount();
form.addSubmitButton("Count#:"+count);

response.writePage( form );
}
Source by netsuite.custhelp.com #
 
PREVIOUS NEXT
Tagged: #suitescript #lineitemcount
ADD COMMENT
Topic
Name
8+5 =