Managing a Single Page Application from the NetSuite User Interface
To see the list of single page applications (SPAs) in your NetSuite account, go to Customization > Scripting > Single Page Applications. Click the name of the SPA to see its details and configuration settings that you can edit. You must have the SuiteScript permission (Edit or Full) to edit the configuration settings of SPAs in your account.
From the SPA list, you can do the following:
-
To open the management page for an SPA, click the SPA name.
-
To open a single page application, click the link icon next to the SPA name.
SPAs that are part of SuiteApps installed from the SuiteApp Marketplace have a limited version of the SPA management page, where basic information is in read-only mode and only configuration fields are editable. For information about managing SPAs from installed SuiteApps, see Managing Single Page Applications Included in SuiteApps.
For developers working on SPAs, you can manage the SPA settings from these tabs on the SPA management page:
-
Basic Info – Shows the details of the SPA, including the SPA name, SPA ID, name and ID of the SuiteApp that the SPA is part of, SPA URL, and the SPA sources (SPA folders and script files). Click the link icon next to the SPA source files to go to the location of the folder or file in the File Cabinet.
-
Configuration – Includes the configuration fields that you can edit to change the settings of the SPA. For information about the changes that you can make on this tab, see Configuring Settings from the SPA Management Page.
-
Logs – Shows the logs for the SPA. Click Refresh to reload the list and see any new logs after running the SPA.
-
System Notes – Shows the changes for the SPA (creation and updates). The following details are shown: date/time, user, role of the user, type of action, object changed, and old and new values. The information about deletion actions is also retained.
Note:Updates to the values of following fields are not tracked by System Notes: Audience, Center Links, and Error Notifications.
Configuring Settings from the SPA Management Page
The following table shows the fields available on the Configuration tab of the SPA management page.
Field |
Description |
How to Configure |
---|---|---|
Execute As |
Determines the permissions and restrictions to apply when running the SPA server script based on the selected role. By default, this field is set to Current Role. For more information, see Executing Scripts Using a Specific Role.
Note:
The SPA in the browser will always run based on the role of the currently logged-in user. |
To change the role selected in this field, click the edit icon to display the list of available roles. Select a role, and click Save. |
Log Level |
Filters the log entries shown on the Logs tab. The default log level is Debug. Other log level options include Audit, Error, and Emergency. For more information, see Setting Script Execution Log Levels. |
To change the log level, click the edit icon to display the log level options. Select a value, and click Save. |
Release Audience |
Determines who can run the SPA. When the SPA is created, it runs only in the accounts of the roles selected in this field. If no role is specified, the SPA is accessible only to the script owner. |
To change the audience, click the Set Up Audience button to see the current roles selected and other possible options. You can filter the list by entering the name of the role. The audience roles are shown in two separate multiselect fields: Internal Roles and External Roles.
Click Save to save your selection. |
Center Links |
Lets you create, edit, or delete center links for the SPA. Center links are used to specify a menu path that lets users access the SPA directly from that location. |
|
Error Notification |
Indicates who is notified about errors. By default, the script owner is selected. |
To set up the list of users who receive notifications, click Set Up Notifications. Select from the following options:
In the Specific Email Addresses field, you can enter a comma-separated list of email addresses of other users who should be notified. |