How to Use ExtJS Controls in NetSuite
Currently, the platform offers two versions of the API – SuiteScript 1.0, which is the current and most widely used version, and SuiteScript 2.0, which is next gen version and is slowly rising in the usage. Both versions of the API serve the same purpose though, which is to customize NetSuite.
However if you want a better, purer NetSuite experience in your UI dialog boxes, then you should use Ext JS instead, to create 100% native NetSuite UI controls such as message boxes and confirm box (as depicted below).
You can generate this type of alert box with the simple code snippet shown below.
Ext.MessageBox.alert(“ExtJS Alert”, “This is a ExtJS alert box.”);
To generate a confirmation message box, just use following code.
Ext.MessageBox.confirm(“ExtJS Confirm”, “Do you want to use ExtJS?”);
Ext JS also offers many other UI controls such as progress boxes that you can use to enhance your NetSuite UI. However, not all UI controls provided by Ext JS may be supported by NetSuite, so that’s something you should keep in mind.
For more information about using Ext JS to create dialog boxes and controls in the NetSuite UI please refer to (http://docs.sencha.com/extjs/6.2.0/modern/Ext.htmld) .
Have a NetSuite development or customization requirement you would like discuss? Get In Touch.