Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
Since the arrival of Dynamics Ax 2012, the traditional RunBaseBatch framework is getting obsolete. This has been replaced by the SysOperationFramework. This framework brings a few nice features that were missing in the RunBaseBatch framework. One them is the MVC pattern to separate concerns.
I would like to start with a few links concerning how to create SysOperationFramework services. A colleague of mine, Klaas Deforce, has created some posts that clearly explain how it works.
All of the post are linked through this overview post : http://www.artofcreation.be/2011/08/21/ax2012-sysoperation-introduction/
Well now, let’s come to the question of this post : How can you determine the sequence of dialog fields on the dialogs created by the SysOperationFramework? The answer here lies in the Attributes available also in Dynamics Ax 2012. You have a contract with several datamembers marked with the [DataMemberAttribute] attribute. To determine the sequence you can add the [SysOperationDisplayOrderAttribute] attribute (http://msdn.microsoft.com/en-us/library/gg963068.aspx).
For an example of this, you can check the AssetBalanceReportColumnsContract class, method parmAssetBookId.
public AssetBookMergeId parmAssetBookId(AssetBookMergeId _assetBookId = assetBookId)
assetBookId = _assetBookId;
In the previous sample of code you can also see the SysOperationGroupMemberAttribute attribute. This is to determine which fields belong to a certain group on a dialog. And you can also use a custom sequence on groups by using the SysOperationGroupAttribute attribute as seen in the classDeclaration:
SysOperationGroupAttribute('Book', "@SYS95794", '1'),
SysOperationGroupAttribute('Period', "@SYS40", '2')
public class AssetBalanceReportColumnsContract implements SysOperationValidatable
So there you have it. If you want to rearrange things on the dialog, you can use the above method.