Today i want to share with you
how to display a welcome message when the user login into AX in
Go to Info class---> double click on StartUpPost method and paste this code into code editor
void startupPost()
{
UserInfo UserInfo;
select Name from UserInfo where UserInfo.id==curUserId();
info('Welcome to '+UserInfo.name);
}
Close your application once and open again you will get the info message.
Go to Info class---> double click on StartUpPost method and paste this code into code editor
void startupPost()
{
UserInfo UserInfo;
select Name from UserInfo where UserInfo.id==curUserId();
info('Welcome to '+UserInfo.name);
}
Close your application once and open again you will get the info message.
3 comments:
after canged the code,to get this message,we need to export and import the class
Hi Naresh,
In 2009 it is not required.
In 2012 you just need to forward compile the application.
Regards,
Venkatesh.
Post a Comment