Skip to main content
Answer

24R2 [24.205.0015)] - How To create a new field in the sales order screen and display on the modern UI Sales order screen

  • December 24, 2024
  • 2 replies
  • 192 views

Forum|alt.badge.img

Hello Everyone, 

We are trying to create a new field in the sales order screen and we need to display it in the modern UI Sales order screen.  
Created a new instance with version (24.205.0015).

 

While creating the instance enabled the Install NodeJS  and Enable Modern UI check boxes.  
After completing the instance setup, I tried running the npm run getmodules command, but encountered the following issue. 

First the NodeJS   files was not in the FrontendSources  folder. The NodeJS  folder was created in the C:\Program Files\AcumaticaTools\NodeJS\node-v18.12.1-win-x64 path.  
Moved NodeJS  to the FrontendSources  and tried still same issue.  
I also tried running the .\npm command in the NodeJS folder, but it did not work. 

It seems the NodeJS is not installed that I have installed with Acumatica instance. Removed the NodeJS from the path and followed these instructions(https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows) 
After installing NVM (Node Version Manager), I verified whether any versions were installed or not. 
No versions are installed. 

I installed npm, but it showed some warnings during the process. 

When I ran the npm run getmodules command, I encountered errors. 

I have also tried running the npm run getmodules command after adding the new .ts and .html files to create a new page, but the issue still persists.

I attempted to resolve the issue by running the npm audit fix --force command. After that, I executed npm run build-dev, but the issue still persists. 

I have observed that I am getting an error at client-controls module. 


Thank you in advance.

Best answer by harutyungevorgyan

Hello ​@rakeshe45 ,

I see that you've successfully installed Node.js. The spawn EINVAL error you're encountering is due to a security update in Node.js. Fortunately, this issue can be easily resolved by modifying a specific option in your gulp-tools.ts file.

For detailed instructions, refer to the solution provided in the post below. I hope this helps, and everything works smoothly after applying the fix!

Let me know if you need any further assistance.

 

 

2 replies

Forum|alt.badge.img
  • Author
  • Varsity I
  • December 24, 2024

Please refer the below document for the screenshots.

Thank you


harutyungevorgyan
Jr Varsity I
Forum|alt.badge.img+2

Hello ​@rakeshe45 ,

I see that you've successfully installed Node.js. The spawn EINVAL error you're encountering is due to a security update in Node.js. Fortunately, this issue can be easily resolved by modifying a specific option in your gulp-tools.ts file.

For detailed instructions, refer to the solution provided in the post below. I hope this helps, and everything works smoothly after applying the fix!

Let me know if you need any further assistance.