【发布时间】:2020-01-15 05:48:52
【问题描述】:
我试图从收货记录的行项目中获取子列表子记录,但它返回null。
/**
*@NApiVersion 2.x
*@NScriptType ClientScript
*/
define(['N/error', 'N/currentRecord'],
function (error, currentRecord) {
function pageInit(context) {
var rec = currentRecord.get();
rec.selectLine({ sublistId: 'item', line: 0 });
var inventoryDetailSubRecord = rec.getCurrentSublistSubrecord({sublistId: 'item', fieldId: 'inventorydetail' });
// inventoryDetailSubRecord object comes up with null.
}
return {
pageInit: pageInit
};
}
);
inventoryDetailSubRecord 对象应该提供库存详细信息子记录。
【问题讨论】:
标签: netsuite