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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Using JS reference file
Hey guys. Have you tried using a reference js file that simply contains variables in SS2.0? For example, in SS1.0, i simply attached it as library file on the script definition. In SS2.0, if I have a file that contains java script variables to be used by other scripts, how would i do that?
Do i still need to use the full syntax to include
define([],
function() {
return{
'myVar1':{'test':'test'},
'myVar2':{'moretest':'moretext'}
}
}
I used to use this method so that I can use schedule script to generate a JS variable files.
0