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
Conditional module loading based on context
Hello,
If you take a module such as N/task, it doesn't work with client scripts. If you load this module or a custom module that loads N/task, on Client side, the entire client script breaks without any error breaking all client side validations. If we do this the other way, say, load N/ui on a user event script, an error is thrown when the record is loaded.
The use case is that it's hard to create a single library for a specific module and include them commonly in any type of script. Currently, I have to do modulex.js, modulex-server.js and modulex-client.js
0