【发布时间】:2017-02-09 09:29:01
【问题描述】:
我正在编写一个客户端脚本,它使用项目的内部 ID 和位置的库存位置 ID 进行下拉选择。我想获取库存盘点记录中的项目的“数量选择”。如何使用项目的内部 ID 在搜索过滤器中执行此操作?
var filters = new Array();
filters[0] = new nlobjSearchFilter( 'inventorylocation', null, 'anyof', location );
filters[1] = new nlobjSearchFilter('internalid', null, 'anyof', item);
//filters[2] = new nlobjSearchFilter('item', 'inventorycount', 'anyof', item);
var columns = new Array();
columns[0] = new nlobjSearchColumn('locationquantitycommitted');
columns[1] = new nlobjSearchColumn('locationquantityonhand');
columns[2] = new nlobjSearchColumn('locationquantitybackordered');
//columns[3] = new nlobjSearchColumn('quantitypicked');
注释行是我想要实现的。
【问题讨论】:
标签: javascript filter netsuite suitescript