Customization Project with UI Changes: General Information
To distribute the changes that you have made to the Modern UI of your MYOB Acumatica instance to other MYOB Acumatica instances, you need to include your Modern UI files in a customization project. You include the Modern UI files in a customization project on the Modern UI Files page of the Customization Project Editor.
Learning Objectives
In this chapter, you will learn how to include changes to the Modern UI in a customization project.
Applicable Scenarios
You include changes to the Modern UI in a customization project if you need to use these changes in another MYOB Acumatica instance.
Preparation for Publishing a Customization Project with Modern UI Files
For the publication of customization projects with Modern UI files, Node.js must be installed, including the node version manager (nvm) and node package manager (npm). The MYOB Acumatica ERP Configuration Wizard installs the needed version of Node.js if the Install NodeJS check box is selected on the Website Configuration page of the wizard.
appSettings
section of the
Web.config file of your instance: <add
key="NodeJs:NodeJsPath" value="C:\Program Files\NodeJs"/>
, where
value
specifies the path to the location where Node.js has been
installed.Before publishing a customization project with Modern UI files, you may need to further configure the MYOB Acumatica instance by specifying the following keys in the Web.config file of the instance:
- NodeJs:NpmCachePath: Specifies the path for the npm cache, such as C:\instances\site\App_Data\npm-cache. This key is mostly intended for production use.
- NodeJs:DevBuild: If the value is true, turns on developer mode, which will be used while the Customization Project Editor compiles the UI sources.
- NodeJs:CompileAllScreens: If the value is false, during publication of customization projects, compiles the Modern UI source code only for the MYOB Acumatica forms whose Modern UI source code has been modified. If the value is true, all Modern UI source code is compiled.
Adding of Files to a Customization Project
To add Modern UI files to a customization project, you use the Modern UI Files page. On the page toolbar, you click Add New Record; in the dialog box that opens, you select the Modern UI files that you need to include in the customization project.
Publishing of a Customization Project with Modern UI Files
You can publish a customization project with Modern UI files in the same way as you publish any other customization project. For details about how to publish a customization project, see Publishing Customization Projects.
If any error related to the Modern UI files occurs during the publication of the customization project, you can find the log of the compilation of the Modern UI files in the App_Data\logs folder of the instance.