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');
我能夠得到的位置和供應商的數據是這樣如何使用請求getParameter獲取suitelet中的子列表的數據?
request.getParameter('custpage_locationlist')
request.getParameter('custpage_vendorlist')
但我的問題是,如何讓在suitlet
的其他部分子表的數據表單正在if部分中創建,但如何獲取request.getParameter中的子列表的數據,在其他部分。