My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

20 March 2010

Customizing Infolog System in Dynamics AX

by Patrik Luca 1 comments

Tag



Business Requirement: go to other form

The Infolog System can be easily customized in Dynamics AX. You can attach actions to the displayed messages in the infolog. Upon double clicking the message you could for example go to another form, related to the displayed message. On MSDN, you can find some information about Using the Infolog System.

Solution: using the SysInfoAction_TableField class

Using the SysInfoAction_TableField class, you can easily add this functionality in your displayed messages. The job beneath shows first a normal information message. The second information message however can be double clicked by the end-user. Double cliking it will open the Customer form on the Customer determined in the X++ code. (in stead of double clicking, the end-user could aswell click the Show button in the Infolog).


static void customizeInfolog(Args _args)
{
CustTable custTable;
;

select firstOnly custTable
where custTable.AccountNum == "1301";

info(strFmt("Normal info message about customer %1"
,custTable.Name));
info(strFmt("Information message opening the CustTable "
+ "Form on customer %1 upon double clicking "
+ "the information message"
,custTable.Name)
,""
,SysInfoAction_TableField::newBuffer(custTable));
}





Comments 1 comments
Anonymous said...

Great post.

thanks

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries

Subscribe feeds rss Recent Entries

Categories

Recommended Books


Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Blog Archive

My Blog List

Followers

Links