Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Scriptable cart, global client scripts, and the 'N/ui module
I am attempting to enable scriptable cart in an account that has a global suitescript 2.0 client script and running into an issue. The N/ui module is not defined when the script runs in the context of the webstore.
I have come up with the following work-arounds:
1. Switch to form level client script and use a different custom form for orders originating from the web store - bad for maintenance effort
2. Reference all modules with define(['N'], function(nModule) { /* code goes here */ }); - bad for performance
3. Undeploy the script from certain roles - potentially the best option
Any other ideas?