2024年4月8日发(作者:)
AX2012开发规范
农民锅
AX2012 开发规范
New Best Practice
农民锅
1 | Page
Dynamics AX 2012
AX2012开发规范
农民锅
Message
RecID field cannot be part of the
ReplacementKey index.
Description
A RecID field was set as the replacement key.
Best practice rule that supports relational application design.
The following properties were added to define a model:
The dbTableMapNode property was added to the Table
node.
The dbReferenceNode property was added to the
Relation node.
The dbIndexNode property was added to the Index
node.
This best practice check requires unique names in the
inheritance hierarchy. When you create a new field in a table,
the best practice logic iterates through the inheritance
hierarchy to ensure the RecID and ReplacementKey index are
unique.
Class is packing element IDs instead of You used an element ID in your pack and unpack methods.
element names. Examples of element IDs are ClassId, TableId, and FieldId. Use
the element name in your pack and unpack methods.
The form must include a grid that If a form has a data source with ValidTimeStateAutoQuery
contains ValidFrom and ValidTo fields property set to DateRange, the form must include a grid that
when that form has a data source contains valid from and to fields.
with ValidTimeStateAutoQuery set to
DateRange.
Table is using CreatedDateTime or When a table uses CreatedDateTime or ModifiedDateTime
ModifiedDateTime, RecId index needs then it must have a RecID field created for the table.
to be created.
The class %1 is obsolete. Instead, use You tried to use a class that is obsolete.
the
Class %2
Do not use braces around the case You have braces around a case block in a switch statement
blocks in a switch statement. that must be removed.
Do not use the
documentation. The syntax is derived removed.
from the method declaration, and
must not be explicitly provided.
Line item workflow '%1' event handler Best practice rule for event handling that is now supported for
does not reference a valid class approvals and tasks.
implementing the '%2' interface
Line item workflow relation '%1' not Best practice rule for event handling that is now supported for
found on workflow document query approvals and tasks.
'%2’
Line item workflow relation '%1' is Best practice rule to support event handling that is now
invalid. Relation must be configured supported for approvals and tasks.
with a fetch mode of 1:n on workflow
document query '%2'
2 | Page
Dynamics AX 2012


发布评论