How to do it...

  1. Open your AL project folder in Visual Studio Code.
  2. The first thing we need to do is create the control add-in AL object. In the Explorer, create a new file named Television Control AddIn.al and enter in the following code in the Editor tab:
controladdin TelevisionControlAddIn{    RequestedHeight = 75;    MinimumHeight = 75;    MaximumHeight = 75;    RequestedWidth = 300;    MinimumWidth = 300;    MaximumWidth = 300;    VerticalStretch = true;    VerticalShrink = true;    HorizontalStretch = true;    HorizontalShrink = true;    StartupScript = 'ControlAddIn/startup.js';    Scripts = 'ControlAddIn/controlAddIn.js';    StyleSheets = 'ControlAddIn/style.css';    procedure SetTelevisionShow(TelevisionShow: JsonObject);    event ControlReady();}
You can use the tcontroladdin ...

Get Microsoft Dynamics 365 Business Central Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.