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.

No comments:

Post a Comment