Book Image

Microsoft Dynamics AX 2009 Programming: Getting Started

By : Erlend Dalen
Book Image

Microsoft Dynamics AX 2009 Programming: Getting Started

By: Erlend Dalen

Overview of this book

<p>Microsoft Dynamics AX 2009 is Enterprise Resource Planning (ERP) software that comes with its own development environment and a programming language called X++. It is specialized and optimized to solve the tasks that are typical of an ERP system. But the specialized development environment of AX brings a steep learning curve. Hence, getting started with Dynamics AX and mastering it effectively can sometimes be daunting.<br /><br />This tutorial has been carefully structured to guide you through the basic features of AX development, and get you started as quickly as possible. With this book, you will soon be able to develop and maintain comprehensive management solutions for enhancing your application's performance.<br /><br />The book starts with a tour of the development environment, which helps you gain a deep understanding of Dynamics AX tools and architecture. It will introduce you to the X++ language. It helps you to create new functionality that can be used and changed in the standard application. You'll also learn how to search, manipulate, and integrate data.<br />The practical examples in this book take you through sample AX development projects and help you learn to create forms, reports, menu items, menus, and navigation pages. It also helps you work with the MorphX application.<br /><br />The author's experience of developing solutions with Dynamics AX enables him to share insights in an effective, clear, and friendly way.<br /><br />By the end of this book, you will have a better understanding of the inner workings of Microsoft Dynamics AX &ndash; making your development simpler and faster, and your applications fast, reliable, and robust.</p>
Table of Contents (20 chapters)
Microsoft Dynamics AX 2009 Programming: Getting Started
Credits
About the Author
About the Reviewers
Preface
Links
Debugger
Index

Introduction


You have already seen the HelloWorld example and probably thought that this looks pretty easy and yes, it is. The X++ syntax is not very strict as it is case insensitive. However, you should try to follow the naming conventions used in the rest of AX.

Some, but not all, of these naming conventions are listed here:

  • Application object names are mixed case. The first letter of the name is uppercase as is the first letter of each word in the name. This is called Camel casing (for example: SalesFormLetter).

  • Methods, variables, and functions have mixed case names with a lowercase first letter. This is called Pascal casing (for example: initFromSalesTable).

  • Primitive variable types use lowercase names (for example: str).

  • All names should be in U.S. English.

  • Be consistent while naming.

  • Only tables, base enums, and extended data types should have the prefix 'DEL_'. This prefix is used to indicate that the element will be removed in the next version, and is used by the data upgrade scripts...