I am currently developing a new Acumatica screen for our company that will involve integrating javascript code to retrieve and display a map object (from ESRI).
The challenge is that this code necessitates an external .js file which the javascript code itself includes in the HTML. While everything works smoothly when testing on a blank HTML page, I encounter issues when attempting to use the same code within the Acumatica screen.
When trying to load the full .js file code alongside my own, I encountered the following error:
error CS8095: Length of String constant exceeds current memory limit. Try splitting the string into multiple constants.
Despite the error message suggesting splitting the file into multiple strings, I have refrained from doing so as I seek a more professional and direct solution.
Is it feasible to manually import this external .js file into our Acumatica instance to reference it instead? (perhaps hosting it in the same environment could make a difference)
Alternatively, is there a way to configure Acumatica to allow loading external files so we can continue with our current approach? (are there any settings restricting the loading of external files?)