Book Image

Mastering Microsoft Dynamics AX 2012 R3 Programming

By : Simon Buxton, Mat Fergusson
Book Image

Mastering Microsoft Dynamics AX 2012 R3 Programming

By: Simon Buxton, Mat Fergusson

Overview of this book

<p>Due to its interesting capabilities such as finance and supply chain management, business intelligence and reporting, project management, and so on, Microsoft Dynamics is one of the most widely used solutions adopted by many organizations across the globe. This book is a step-by-step tutorial that covers elements from the initial design through to development. Each concept is fully explained and demonstrated by the creation of a real-world project. You will learn some really useful, advanced development techniques such as extending your code with metadata and exception handling.</p> <p>This book is an invaluable tutorial if you are moving from another ERP system or language, or if you are a technical consultant with a desire to create efficient functional designs and business solutions.</p>
Table of Contents (21 chapters)
Mastering Microsoft Dynamics AX 2012 R3 Programming
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Customizing the user interface displayed by the SysOperation framework


Let's take a step back to the point where we were calling ConFMSVehicleGroupChangeController's main method directly.

The system very cleverly constructs the user interface; it does this simply by adding the data contracts data member directly to the dialog. There are some simple changes we can make to the data contract to control how they are displayed.

We make these changes by altering the decoration at the top of each data member. The following examples are useful for this:

SysOperationLabelAttribute("New vehicle group"),

Sets the label displayed on the dialog

SysOperationHelpTextAttribute ("Please select...");

Sets the help text for the resulting control

SysOperationDisplayOrderAttribute("2")

Causes the control to be placed second in the resulting dialog

An example decoration for the vehicleGroup method can be as follows:

[DataMemberAttribute,
 SysOperationLabelAttribute("New vehicle group"),
 SysOperationHelpTextAttribute...