Netsuite TS Snippets
This extension contains code snippets for Netsuite SuiteApps developed with TypeScript.
How to use
To use the extension you need to open a TypeScript file and type one of the prefixes below to get the snippet code.
The snippets code are using netsuite-types project SuiteScript 2.0 Typings.
Example
Snippets
prefix |
Snippet |
userevent |
User event script |
afterSubmit |
User event afterSubmit entry point |
beforeSubmit |
User event beforeSubmit entry point |
beforeLoad |
User event beforeLoad entry point |
emptyscript |
An empty script with anotations |
clientscript |
Client script |
beforeLoad |
Client script beforeLoad entry point |
fieldChanged |
Client script fieldChanged entry point |
lineinit |
Client script lineinit entry point |
pageInit |
Client script pageInit entry point |
postSourcing |
Client script postSourcing entry point |
saveRecord |
Client script saveRecord entry point |
sublistChanged |
Client script sublistChanged entry point |
validateDelete |
Client script validateDelete entry point |
validateField |
Client script validateField entry point |
validateInsert |
Client script validateInsert entry point |
validateLine |
Client script validateLine entry point |
localizationContextEnter |
Client script localizationContextEnter entry point |
localizationContextExit |
Client script localizationContextExit entry point |
mapreduce |
Map reduce script |
getInputData |
Map reduce getInputData entry point |
map |
Map reduce map entry point |
reduce |
Map reduce reduce entry point |
summarize |
Map reduce summarize entry point |
portlet |
Portlet script |
schedule |
Schedule script |
sdfinstallationscript |
SDFinstallation script |
unit-test-template |
JEST unit test template script |
describe |
JEST unit test describe |
it |
JEST unit test it |
| |