Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Problem with addSubList in beforeLoad user event
Good morning,
I am trying, through SuiteScript, to create a sublist under an existing tab.
To do this, I'm running the following code on the beforeLoad user event:
glb.func.DC.Vendite.BeforeLoad = function(p_sType, p_oForm) { nlapiLogExecution('DEBUG', 'trying...', ''); var oListaAvzLavori = p_oForm.addSubList('custpage_avz_lavori', 'list', 'Avanzamento Lavori', 'Stato'); //var oListaAvzLavori = p_oForm.addSubList('custpage_avz_lavori', 'staticlist', 'Avanzamento Lavori', 'Stato'); nlapiLogExecution('DEBUG', 'done', ''); }When I enter the page on which the script is, it writes both the lines of log ("trying..." and "done") in the execution log, but in the page i get this error message:
0