Add all Role Centers to AX Client Favorites for demo purpose

Run this job in AX Client to add all oob role centers to your favorites section in AX Client for easy demo purpose.  static void AddRoleCentersToFavorite(Args _args){str sDefault =”Default”;SysProfiles uprofile;MenuFunction mf;TreeNode treeNode;    TreeNodeIterator iterator;    TreeNode newTreeNode;    UserMenuList userMenu;    Menu menuNode;    #AOT;  treeNode = infolog.userNode();    iterator = treeNode.AOTiterator();    treeNode = iterator.next();    if (treeNode)    {        userMenu =…

6

How to set focus on the asp.net textbox in AxPopup form?

To set the focus include this method in your page that is opened in the popup window and call the method without control name in the page load event. For example to set the focus on txtCustAccount   protected void Page_Load(object sender, EventArgs e)     {                 SetFocus(txtCustAccount);     }   public static void…

1