web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to setup control add-in in NAV2018 using AL

(0) ShareShare
ReportReport
Posted on by 3,967

Hi,
I've setup a signature control add-in in NAV 2017 using the url "https://blogs.msdn.microsoft.com/nav/2014/10/09/extensibility-for-the-microsoft-dynamics-nav-tablet-client/"  But I want to setup it on NAV 2018.
Please suggest how am I supposed to do the same in NAV 2018 or Tenerife.
Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    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');

                 }

               }

             }

       }

    }

  • Olister Rumao Profile Picture
    3,967 on at

    Hi Stefano,

    The control add-in contains a javascript file which is called through C# via  a .NET variable.

    But since .NET variable is not available I wanted to try using Azure Functions which can be called through a URL and call the javascript file. Is there anywhere I can find the javascript samples?

    I've referred this blog (vjeko.com/invoking-azure-functions-al)

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    This post shows how to call an Azure Function with AL. Consider if you really need an Azure Function, because if your addin is pure JavaScript you can use it in AL directly.

  • Olister Rumao Profile Picture
    3,967 on at

    Hi,

    I've got control add-in in javascript that is drawing on a canvas. But I dont understand as to how shall I send the drawn canvas back to AL

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans