Wednesday, March 01, 2006

How to make Sidax autostart.

If you do this, Sidax will start, when you login Axapta.

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)

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete