AxAssist安装说明
Microsoft Dynamics AX 4.0:
Add this code after variable definition section in Classes->EditorScripts->getApplicableScripts() method:
// > AxAssist, 20.02.2011
if(DEV_AxAssistSingleton::getThisClass().parmAltMEmulate())
{
DEV_AxAssistSingleton::getThisClass().parmEditor(e);
DEV_AxAssistSingleton::getThisClass().parmAltMEmulate(false);
return connull();
}
// < AxAssist, 20.02.2011
Microsoft Dynamics AX 2009:
Add this code after variable definition section in Classes->EditorScripts->getApplicableScripts() method:
// > AxAssist, 20.02.2011
if(DEV_AxAssistSingleton::getThisClass().parmAltMEmulate())
{
DEV_AxAssistSingleton::getThisClass().parmEditor(_editor);
DEV_AxAssistSingleton::getThisClass().parmAltMEmulate(false);
return connull();
}
// < AxAssist, 20.02.2011
如果希望AX启动时自动打开请修改以下代码:
If you want AxAssist to start after Microsoft Dynamics AX startup:
Open class Info (Classes\Info)
Modify the startupPost() method for Microsoft Dynamics Axapta 3.0 or workspaceWindowCreated() for Microsoft Dynamics AX 4.0 and Microsoft Dynamics AX 2009 as shown below:
FormRun formRun;
;
// Put workspace window specific initialization here.
// if control is pressed - skip
if(!WinAPI::isControlButtonDown() &&
DEV_AxAssistFunc::checkActiveXRegistered())
{
formRun = new MenuFunction(menuItemDisplayStr(DEV_AxAssistForm),MenuItemType::Display).create();
if(formRun)
{
formRun.run();
formRun.detach();
}
}
Also, you can create security key for DEV_AxAssistForm menu item to manage access to this feature.