Developing Single Page Applications

Single page applications (SPAs) in NetSuite require the use of SuiteScript. SPAs use two specific script types: the SPA server script and the SPA client script.

The SPA server script acts as the entry point for the application and can execute the logic needed before rendering the page. The SPA client script loads the components and can also load custom modules or third-party libraries. These scripts also enable loading of the respective server-side and client-side SuiteScript modules.

For more information about the structure of these scripts and the APIs available, see the following topics:

For examples, see the following topics:

Note:

All code samples in this section use import, so they need to be transpiled before deployment to NetSuite. For more information, see Components and Structure of Single Page Applications and Creating a Single Page Application.

For information about the execution process of SPAs, see Understanding the Single Page Application Execution Process.

Related Topics:

Single Page Application Creation And Development
Creating a Single Page Application
Single Page Applications as XML Definitions
Troubleshooting Single Page Applications

General Notices