Managing a Single Page Application from SuiteCloud Development Framework

With SuiteCloud Development Framework, you can manage the settings of single page applications (SPAs) by editing the fields on the SPA object definition XML file. These fields also correspond to fields on the Basic Info and Configuration tabs of the SPA record in the NetSuite UI.

When updating an SPA object in an SDF SuiteApp project, consider the following information:

To update an SPA object, you must have the SuiteApp project files saved in your local environment (even if you do not make changes to other files). Otherwise, when you redeploy the SuiteApp with the updated SPA object, it fails. If you do not have these files saved locally, you can import the SPA object from a target NetSuite account into your SDF SuiteApp project and download the script files from the NetSuite File Cabinet.

To manage the settings of your SPA from SDF:

  1. If you have the SuiteApp project files in your local environment, you can proceed directly to step 2. Otherwise, follow these steps to download the SuiteApp project files:

    1. Import the SPA object from a target NetSuite account to your local environment.

      The Download XML button is not available for SPA objects, but you can use SuiteCloud plug-ins and extensions and SuiteCloud CLI to import an SPA object from a NetSuite account. For more information, see Account Component Imports to SuiteCloud Projects.

      You can import an object from a specific SuiteApp by specifying the application ID. To filter your search, select singlepageapp as the object type and select script IDs that contain custspa.

    2. Download the SPA folder, SPA client script file, and SPA server script file, or create them in your local environment. If the assetsfolder field has a value in the XML definition, you also need to create an assets folder inside the SPA folder. The assets folder is not downloaded if the folder is empty.

      You cannot import files from a NetSuite account into a SuiteApp project. You must manually download the SuiteApp project files from the NetSuite File Cabinet or create the files in your local SuiteApp project folder.

  2. In the SPA object definition XML file, change the fields that you want to modify. For information about the XML definition for SPA objects, see Single Page Applications as XML Definitions. For information about fields and possible values in the SPA object definition, see singlepageapp.

  3. Deploy the project to your account. For more information, see SuiteCloud Project Deployment Preparation.

    Note:

    You can apply installation preferences to SPAs. The SPA supports object locking, and hiding and locking of files. For more information about installation preferences and how to apply them, see Installation Preferences in the SuiteApp of SuiteCloud Project.

Related Topics

References to SuiteCloud SDK Tools
Single Page Application Management
Managing a Single Page Application from the NetSuite User Interface

General Notices