Tuesday, 4 December 2012

Edit Editor Script Class Ax 2012/2009 , add options Right click on MorphX editor



suppose u add one  option like developer >> comment

add two methods in following classes

class >> XppSource

Source Developer()
{
     source += strfmt("//user %1 and Date %2",curUserId(),systemDateGet());
    return source ;
  }

class >> EditorScripts

void Developer_Comment(Editor editor)
{
    xppSource xppSource = new xppSource(editor.columnNo());
    Source template = xppSource.Developer();
    ;
    editor.insertLines(template);
}

Note :   Developer_Comment will appear on editor Developer  ----> Comment
           Here  Developer is a header node
            Comment is child node.

Get the Message or info while opening Ax Application



1. In server Open ->Dynamics AX Clint configuration
give the Message in start up message control
2. In Info Class->startupPost() method-> write a info message

 Info(strfmt("UserID %1", curuserId));