RE: How to setup control add-in in NAV2018 using AL
You can't use a .NET (DLL) addin with AL. Your control addin must use javascript.
[View:https://docs.microsoft.com/en-us/dynamics-nav/developer/devenv-control-addin-object]
The AL declaration should be as follows:
controladdin TestAddIn
{
Scripts = 'js/main.js';
StartupScript = 'js/startup.js';
event DemoEvent(prop1 : text[100]);
procedure MyProcedure(Param : text[100]);
}
And you can reference the addin in your NAV page:
page 50100 NAVPageWithAddin
{ CaptionML =ENU= 'Test';
layout
{
area(Content)
{
group( test)
{
usercontrol(ControlName; TestAddIn)
{
ApplicationArea = All;
trigger ControlReady()
var
begin
Message('NAV Addin Loaded');
}
}
}
}
}