最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Dev Info: Beware not to use XML special symbols in attributes and break CIL compile

AX 2012 Kamalakannan Elangovan 1883浏览

Attributes introduced with Dynamcis AX 2012 has deep penetration across different frameworks like Reporting, SysOperationFramework and AIF. Here is a information that you need to be keep in mind when using them.

Avoid using XML special symbols

For e.g. When creating parm methods for dialogs the labels come through the attribute. In the below example everything looks fine but the problem surfaces during CIL generation.

[DataMemberAttribute('Internal & Cost')]
public boolean parmInternalCost(boolean _internalCost = internalCost)
{
    internalCost = _internalCost;
    return internalCost;
}

During CIL generation XML files are generated. The special symbols can break the xml and consequently break the CIL compile. So make sure that you avoid using them in your attributes.

Info: This post is based on a information shared my colleague. I would like to thank him for this information and let the readers know that i have no direct experience of this problem.

7720EN_cov

Sharpen your SSRS skills. Buy the Dynamics AX reporting cookbook

Keep yourself updated with Dynamics Ax – Check the weekly Must read section here

 

The post Dev Info: Beware not to use XML special symbols in attributes and break CIL compile appeared first on Dynamics Ax Lounge.

转载请注明:ww12345678 的部落格 | AX Helper » Dev Info: Beware not to use XML special symbols in attributes and break CIL compile