Hi all, is there a way to load a SuiteScript file ...
# suitescript
g
Hi all, is there a way to load a SuiteScript file or module in the middle of a function that's executing? Say, if I have 10 files potentially, but don't want to load them all just to access only 1, but instead, just load the correct file to be accessed?
90% got it working actually. I read, https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4430268304.html "Bundle Virtual Paths" at the bottom there. Just need to get passing through values as parameters working.
Keen to hear if anyone else has taken this approach, and how you passed reference / value parameters successfully? I'm currently code such as:
Copy code
modules[function_name].apply(function_name, [params]);
Er, never mind, fixed. It was actually undefined the variable I was trying to pass through, all working! 🤣🤣🤣