Zaanton
10/16/2018, 2:17 PMfunction userEventBeforeLoad(type, form, request){
var frm = form.getSubList('XXX');
frm.setDisplayType('hidden');
}
Right now I am using a ue script that looks like this:
/**
* @NApiVersion 2.x
* @NScriptType UserEventScript
* @NModuleScope SameAccount
*/
define(['N/record', 'N/ui', 'N/ui/serverWidget'],
/**
* @param {record} record
* @param {ui} ui
* @param {serverWidget} serverWidget
*/
function(record, ui, serverWidget) {
return {
beforeLoad: function (type, form, request){
var form = form.getSubList('item');
form.setDisplayType('hidden');
}
};
});
I've never seen a function loaded with anything but the context object, so I'm a little lost on what exactly is going wrong. It appears I am getting a Null Reference exception on getSubList.