Alan Fitch
03/10/2021, 11:58 PMstalbert
03/11/2021, 12:00 AMAlan Fitch
03/11/2021, 12:01 AMstalbert
03/11/2021, 12:02 AMSS2
and put all SuiteScript 2.x stuff there, to distinguish clearly from any old SuiteScript 1.0 that might live elsewherestalbert
03/11/2021, 12:04 AMN/*
modules from NetSuiteAlan Fitch
03/11/2021, 12:05 AMstalbert
03/11/2021, 12:14 AMexport
import
syntax (i.e. I don't hand write a define()
function at all)Steven
03/11/2021, 12:14 AMdefine(["../folderName/functionLibrary", "N/log", "N/runtime", "N/xml"], function (functionLibrary, log, runtime, xml) {
...
}
stalbert
03/11/2021, 12:14 AMAlan Fitch
03/11/2021, 12:16 AMAlan Fitch
03/11/2021, 12:16 AMSteven
03/11/2021, 12:17 AMfunctionLibrary.functionOne()
Steven
03/11/2021, 12:18 AMSteven
03/11/2021, 12:19 AMAlan Fitch
03/11/2021, 12:23 AMSteven
03/11/2021, 12:24 AMAlan Fitch
03/11/2021, 12:56 AMSteven
03/11/2021, 1:11 AMmichoel
03/11/2021, 6:15 AMmichoel
03/11/2021, 6:16 AMmichoel
03/11/2021, 6:16 AMCraig
03/11/2021, 7:48 AMCraig
03/11/2021, 7:49 AMdefine['MessageDispatcher']
throws an error (if you're creating a script record).Craig
03/11/2021, 7:49 AMdefine['./MessageDispatcher']
works fine.tuli
03/11/2021, 1:30 PM