I am trying to load 2 modules together, and for some reason I cannot.
Code:
“/SuiteScripts/Main/Source/NetSuite/Libs/HelperClasses/searchHelper”,
“/SuiteScripts/Main/Source/NetSuite/Libs/HelperClasses/dataHelper”,
“/SuiteScripts/Main/Source/NetSuite/Libs/HelperClasses/commonHelper”],
//cmHelper is undefined if I load dataHelper.
//If I remove dataHelper, cmHelper will load fine.
function (seHelper, dHelper, cmHelper)
{
}
This is the error I get
“ReferenceError: cmHelper is not defined
at eval (eval at getEmailRecipients (eval at loadCallback (https://system.sandbox.netsuite.com/…ver=100:245:10)), :1:1)
at Object.getEmailRecipients (eval at loadCallback (https://system.sandbox.netsuite.com/…ver=100:245:10), :25:17)
at pageInit (eval at (https://system.sandbox.netsuite.com/…ver=100:120:11), :10:44)
at runClientScript (https://system.sandbox.netsuite.com/…US.nlqs:1:4511)
at a (https://system.sandbox.netsuite.com/…_US.nlqs:1:298)
at nlapiPageInit (https://system.sandbox.netsuite.com/…US.nlqs:1:6635)
at page_init4 (https://system.sandbox.netsuite.com/…item=F:10145:1)
at loadClientModulesThenPageInit4 (https://system.sandbox.netsuite.com/…item=F:10132:1)
at page_init (https://system.sandbox.netsuite.com/…titem=F:7170:1)
at onload (https://system.sandbox.netsuite.com/app/common/item/item.nl?itemtype=InvtPart&subtype=&isserialitem=F& islotitem=F:73:196)”
This is a cached copy. Click here to see the original post.