Modern UI Development: To Build the Source Code of All MYOB Acumatica Forms for Modern UI Development
The following activity will walk you through the process of initially building the source code for all the forms that are available in the Modern UI.
Story
Suppose that you are going to develop the Modern UI for new MYOB Acumatica forms or customize the Modern UI of existing forms for the Smart Fix company. Before you start your development, you need to rebuild all the Modern UI sources in the FrontendSources folder of your instance.
Process Overview
You will execute a command to build the source code for the first time.
System Preparation
Before you build the source code for the first time, do the following:
- Complete the following prerequisite activity: Modern UI Development: To Deploy an Instance with Custom Forms and the Modern UI. As a result, the
following have been done:
- Node.js, the node version manager (nvm), and the node package manager (npm) have been installed correctly on your computer.
- The
<add key="EnableSiteMapSwitchUI" value="True" />
key has been added to theappSettings
section of the Web.config file of your MYOB Acumatica instance.
- Use Windows PowerShell or a similar program to run the following command in the FrontendSources folder of your instance: npm run getmodules. This command installs the required dependencies needed to build the sources correctly.
Step: Building the Source Code for All MYOB Acumatica Forms
When you build the sources in the FrontendSources folder of your instance for all MYOB Acumatica forms that are available in the Modern UI, the system generates the form schema and JavaScript code from the TypeScript code and creates the mapping between the JavaScript and TypeScript code. You can then use this mapping to debug the client code in a web browser.
To build the sources, run the npm run build-dev
command in the
FrontendSources folder. Note that this command may take
some time to finish its execution.
Once the command has finished executing, you should see a message that a webpack has been successfully compiled.