I created Control AddIn and Imported it in Control Add-Ins page.
When I add it in Control AddIn property on one field of my page, it doesn't show events in C\AL.
All events are declared in .cs file like so:
[ApplicationVisible]
event ApplicationEventHandler ControlAddInReady;
[ApplicationVisible]
event ApplicationEventHandler Something;
etc etc.
What could be the issue?
THANKS!
P.S.
I am aware of this webpage:
https://msdn.microsoft.com/en-us/library/dn182584(v=nav.80).aspx but it doesn't help since I did everything as it is instructed, if anyone thinks of recommending this
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
If it still doesn't work. Create a dotnet variable in your page and select your add-in interface in the server list. That triggers NAV to actually get the assembly. Once selected, add the add-in field again.
If all fails, delete the add-in cache on your dev machine (C:\Users\yourusername\AppData\Local\Temp\Microsoft Dynamics NAV\Add-Ins).
If it still fails, there's a problem in your assembly. Reference to the wrong version of Microsoft.Dynamics.Framework.UI.Extensibility.dll?
Additionally try using
[ApplicationVisible]
public event EventHandler Something;