microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
722 stars 242 forks source link

Control Addin does not render in online sandbox #5677

Closed brooksca closed 4 years ago

brooksca commented 4 years ago

Describe the bug When creating an HTML/javascript controladdin object, the add-in renders correctly when deploying to a virtual server with an onprem image in a docker environment, however, when deploying the same controladdin to an online sandbox environment, the page does not render. The AL page loads, however, none of the customer HTML/CSS/JavaScript render. Essentially an empty page is displayed.

To Reproduce Steps and to reproduce the behavior:

  1. Create a simple add-in using the AL: Go command in VS code.
  2. Add a controladdin as described here: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-control-addin-object
  3. Add a page to host the object
  4. Deploy the project to an online sandbox
  5. Open the page

Repro repo here: https://github.com/brooksca/ALAddInRepro

Expected behavior The controladdin is expected to render reliably in both an online and docker container environment.

Screenshots If applicable, add screenshots to help explain your problem.

5. Versions:

pmohanakrishna commented 4 years ago

Make sure that "ApplicationArea" property is set for control adding part in page. :)

brooksca commented 4 years ago

Adding the ApplicationArea property to the page fixed the issue. Thanks for your help, Mohana.