method NAVHostCtrlEvents.HostEvent (Ev as NAVHostEvent)
The hosting control fires an event.

TypeDescription
Ev as NAVHostEvent A NAVHostEvent object that holds information about the firing event.

The OnControlAddIn(Index : Integer;Data : Text) trigger notifies your application once the hosting control fires any event. The events being fired depends on the hosting control which usually is specified by the AssemblyQualifiedName call in the Caption property.

In order to handle the OnControlAddin trigger of the Control-AddIn in the NAV's page you have to:

The HostEvent event notifies your application once the hosting control ( Host ) fires an event. The HostEvents property of the NAVHost control specifies the list of events that the control should handle. The AsString property of the NAVHostEvent object gives a brief description of the event that occurred including the event's name, identifier and its list of arguments. Each control that the NAVHost host provides its own events, so for what events the hosting control supports consult its documentation. The Version property specifies the NAVHost control's version, which includes the DEMO if you are running the trial version of the control.

Use the following properties to identify/filter the event:

Use the following properties to access the arguments of the event: