Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 65770

Forum Post: Exposing custom events in NAV 2013

$
0
0

I'm able to expose custom methods and properties using the [ApplicationVisible] property tag. Unfortunately, I'm unable to expose a custom event to show as a trigger in C/AL. Are there extra steps to have a custom event show as a trigger?

In C# code I have something like this.

[ApplicationVisible]

public event MethodInvoker FireNavTrigger;

And, in examples I've seen, I should see a trigger like this in C/AL code, but currently it does not

-  FieldName::FireNavTrigger()

 // Do stuff

Also, is it's a bad idea in general to expose a custom event?

would the OnControlAddIn(Index, Data) event be used in most situations?


Viewing all articles
Browse latest Browse all 65770

Trending Articles