Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Control Add-In C/AL Events

(0) ShareShare
ReportReport
Posted on by 60

Hello,

I am trying to implement a new control add in in NAV 2016 following this tutorial: msdn.microsoft.com/.../dn182584(v=nav.90).aspx Steps

My Problem: When I want to edit the events defined in the C# file, they do not show up in the C/AL editor inside NAV Development. I don't know why?

Here is my C# code:

using Microsoft.Dynamics.Framework.UI.Extensibility;

namespace ThreeJSControlAddIn
{
    [ControlAddInExport("ThreeJSControlAddIn")]
    public interface IThreeJSControlAddIn
    {
        [ApplicationVisible]
        event ApplicationEventHandler ControlAddInReady;

        [ApplicationVisible]
        event ApplicationEventHandler ThreeJSLoaded;

        [ApplicationVisible]
        void LoadData();
    }
}

Here's the C/AL Editor window:


Bildschirmfoto-2016_2D00_11_2D00_09-um-16.42.50.png

*This post is locked for comments

  • RE: Control Add-In C/AL Events

    To Which version?

  • RE: Control Add-In C/AL Events

    Solution is very easy. Change AssemblyFileVersion in AssemblyInfo.cs.

    When importing Add-In to NAV, it compare file versions.

  • Suggested answer
    RE: Control Add-In C/AL Events

    Hi,

    the name differs because I built everything from scratch, following the tutorial.

    I've checked everything more than once and it still didn't work.

    I've deleted the control add in in the field of the page and added it again - now it's working!

  • ManishS Profile Picture
    ManishS 78 on at
    RE: Control Add-In C/AL Events

    I tried that now you get the addin controls triggers.

    But when opening the page the addin box shows error (Control addin not configured).

  • Verified answer
    RE: Control Add-In C/AL Events

    Hi,

    Check this.

    As your C# interface code, try to keep the same naming "ThreeJSControlAddIn" for the Control Add-in name in NAV too and also the dll. Check the screenshots.

    [ControlAddInExport("ThreeJSControlAddIn")]

    dfhg.pngdfhg.png

    Also, check the field property Control Add in the field of the page.

    Capture23.PNG





  • RE: Control Add-In C/AL Events

    Hello,

    thanks for your help. The tutorial you suggested works, but it does not implement any C/AL events.

    Like Manish Sharma, I retried following this tutorial:

    I copied the .dll file into NAV and also inserted the control add in into the control add in page. But unfortunately, the events do not show up inside C/AL.

    Therefore I think that something has changed between 2013 and 2016, and something is missing.

    Bildschirmfoto-2016_2D00_11_2D00_10-um-09.30.15.png

    Bildschirmfoto-2016_2D00_11_2D00_10-um-09.30.15.png

  • ManishS Profile Picture
    ManishS 78 on at
    RE: Control Add-In C/AL Events

    I too had the same issue, i had deleted all the code & recreated every thing from scratch.

    Methods & constructor shows up but then it gives error of variable not defined.

    Looks like some thing is missing in the tutrioal.

  • RE: Control Add-In C/AL Events

    Also,

    Follow this video tutorial, which is fantastic for a beginner: www.youtube.com/watch

  • RE: Control Add-In C/AL Events

    Hi,

    You have to copy the dll which will be on your \Visual Studio 2015\Projects\<Your App>\bin\Debug folder to C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins this folder.

    Hope it helps.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans