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 );
}
Holden