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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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