jen
08/27/2021, 9:25 PMrequire(['/path/to/my_module'], function(my_module) {my_module.myFunction();});
I’m hoping to do this in an old SS1 CustomForm script (used in a Transaction Custom Form) to be able to start moving code from SS1 to SS2 (there is a LOT going on there and doing it all at once is not feasible).
If I want to be able to somehow pass through (or reconstruct) the SS2 context
object, is that possible? The functions in my SS2 module are going to expect to be passed a context
argument.eminero
08/27/2021, 9:44 PMjen
08/27/2021, 9:49 PMjen
08/27/2021, 9:49 PMjen
08/27/2021, 9:49 PMSciuridae54696d
08/31/2021, 1:03 PMwindow.nlapiSetLineItemValue("item", value, (i+1), fldValue);
will workjen
08/31/2021, 6:53 PMcontext
as an argument