Open class Info and modify the startupPost method. Replace yourUserID with the name you log in to Axapta.
/*
No SYS code must exist in this method
*/
void startupPost()
{
;
// ======== Sidax start: =============
// check for user ID and ask for confirmation
if(curUserId()=='yourUserID' && Box::yesNo('Run sidax?', DialogButton::Yes)==DialogButton::Yes)
{
// actually run sidax
TreeNode::findNode('\\Forms\\Sidax').AOTrun();
}
// ========== end of Sidax start =============
}
Note: If you want to skip question, just remove:
Box::yesNo('Run sidax?', DialogButton::Yes)==DialogButton::Yes)
This comment has been removed by a blog administrator.
ReplyDelete