ActiveX Explorer Form [AX 2012]
Updated: January 26, 2011
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
This form displays all the events that can be fired, and all methods that can be executed on the ActiveX-control.
When arguments cannot be represented by intrinsic Microsoft Dynamics AX types, the parameter is converted to the COMVariant type. This applies to:
-
Arguments used to return values (the argument is passed by reference).
-
Optional arguments (COMVariants can be empty).
-
Arguments incompatible with Microsoft Dynamics AX types.
To read or set the value of arguments, which are defined using the COMVariant type, use the method displayed as a comment after COMVariant in the arguments list.
The following example could be an event handler for the Microsoft Hierarchical FlexGrid Control. The method would be fired when a user clicked on the graphic to collapse expanded data.
void onEvent_Collapse(COMVariant /* boolean */ _Cancel)
{
boolean everyThingOk;
// ...
if (everyThingOk) // use the boolean function
{
_Cancel.boolean(true);
return;
}
_Cancel.boolean(false);
}
The following tables provide descriptions for the controls in this form.
Tabs
| Tab | Description |
|---|---|
| Event | Displays the events that can be fired on the ActiveX-control. |
| Method | Displays the methods that can be executed on the ActiveX-control. |
Buttons
| Button | Description |
|---|---|
| Add | Adds an event to the ActiveX control. |
| Delete | Deletes the event from the ActiveX control. |
| Edit | Opens the X++ editor to modify the event added to the ActiveX control. |