NetSuite creates buttons and only allows the onCli...
# suitescript
b
NetSuite creates buttons and only allows the onClick attribute to be set to a String. That is essentially using eval. If you want something in your AMD module to be used by the button, you commit a AMD sin and set a global variable. For example, you set the button's onClick to window.myOnClick() and somewhere in your amd module, set window.myOnClick