Run a form automatically when opening dynamics AX


create menu item for the form and call:

new MenuFunction(menuitemDisplayStr(YourMenuItemName), MenuItemType::Display).run(); 

Place this code to Info.startupPost() (if you want it to start when the client starts) or Info.workspaceWindowCreated() (if you want it to start every time new workspace is opened).

Comments

Post a Comment

Popular posts from this blog

D365 – Data Entity Method Call Sequence

Creating a Report Bound to a Report Data Provider Class (X++ Business Logic) [AX 2012]

Dynamics Ax 2012 Interview Questions: