Sunday, August 9, 2009

Customizing EditorScripts

Ax had a few interesting scripts for the developer. When you have an idea for a new useful script you can extend the the EditorScripts Class (\Classes\EditorScripts) with your new class.

Here is a example where you automate some custom comment while developing:


void comments_MyComment(Editor e)
{
e.unmark();
e.gotoLine(1);
e.gotoCol(1);
e.insertLines(strfmt('//--> ProjectRef - By:%1 @ %2\n', curuserid(), systemdateget()));
}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...