Netsuite 如何使用request getparameter获取suitelet中子列表的数据?

Netsuite 如何使用request getparameter获取suitelet中子列表的数据?,netsuite,Netsuite,我可以像这样获得位置和供应商的数据 var form = nlapiCreateForm("Process Order Items"); var locField = form.addField('custpage_locationlist', 'select', 'Location', 'location').setMandatory(true); if(locationId != '') locField.setDefaultValue(locationI

我可以像这样获得位置和供应商的数据

    var form = nlapiCreateForm("Process Order Items");  
    var locField = form.addField('custpage_locationlist', 'select', 'Location', 'location').setMandatory(true);
    if(locationId != '')
    locField.setDefaultValue(locationId);

    var vendorField = form.addField('custpage_vendorlist', 'select', 'Vendor', 'vendor').setMandatory(true);
    if(vendorId != '')
    vendorField.setDefaultValue(vendorId);

    form.addField('custpage_incitemnoprefvendor', 'checkbox', 'Include Items With No Preferred Vendor');
    form.addField('custpage_incitemvendornopref', 'checkbox', 'Include Items Where Vendor is Not Preferred').setDisplayType('disabled');
    var parentField = form.addField('custpage_parentitems', 'select', 'Parent Item', 'inventoryitem');
    if(parentId != '')
    parentField.setDefaultValue(parentId);

    form.addField('custpage_minimunqty', 'integer', 'Minimum Quantity');
    form.addField('custpage_tobeprinted', 'checkbox', 'To Be Printed');
    form.addField('custpage_tobemailed', 'checkbox', 'To Be Mailed');
    form.addField('custpage_tobefaxed', 'checkbox', 'To Be Faxed');
    form.addField('custpage_total', 'float', 'Total').setDisplayType('inline');

    var sublist = form.addSubList("custpage_orditemslist", 'list', 'Order Items'); //staticlist
    sublist.addField('custpage_selectitem','checkbox', 'Select');
    sublist.addField('custpage_location','select','Location','location');//.setDisplayType('inline');
    sublist.addField('custpage_department','select','Department','department').setDisplayType('inline')
    sublist.addField('custpage_class','select', 'Class','classification').setDisplayType('inline');
    sublist.addField('custpage_itemid','select','Item','inventoryitem').setDisplayType('inline');
但我的问题是,如何在Suitelet的其他部分获取子列表的数据

request.getParameter('custpage_locationlist')
request.getParameter('custpage_vendorlist')
正在if部分中创建表单,但如何在else部分的request.getParameter中获取子列表的数据。

请尝试此操作

if (request.getMethod() == 'GET' )
       {

}
else{

}

您可以执行
request.getLineItemCount('custpage\u orditemslist')
request.getLineItemValue('custpage\u orditemslist','custpage\u selectitem',x)

如果我想要获取getLineItemText怎么办??例如(SS2.0):context.request.getSublistText({group:'',name:'',line:''});你有什么想法吗?没有尝试过,但根据SuiteAnswers ID:510221-“通过在选择字段的ID前面加上'inpt_uu',用户可以在Suitelet的请求后处理中检索选择字段所选选项的文本值。”嗨,Rusty,非常感谢你的回答。我尝试过这个解决方案,但它不适用于子列表字段值,它只适用于选择值。然而,我最终对选择的事务运行了另一次搜索,并获得了文本值。再次感谢您
request.getParameter('custpage_orditemslistdata');