Book Image

Learning MS Dynamics AX 2012 Programming

By : Mohammed Rasheed, Erlend Dalen
Book Image

Learning MS Dynamics AX 2012 Programming

By: Mohammed Rasheed, Erlend Dalen

Overview of this book

<p>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 to enhance your Dynamics AX 2012 application's performance. Starting with a tour of the development environment, you'll gain a deep understanding of Dynamics AX tools and architecture, before getting to grips with X++ for deeper customization. You will also learn how to search, manipulate, and integrate data.</p> <p>The practical examples in this book take you through sample AX development projects and help you learn to create forms, reports, menu&nbsp; items, menus, and navigation pages. The book also helps you work with MorphX. By the end of this book, you will have a better understanding of the inner workings of Microsoft Dynamics AX—making your development simpler and faster, and your applications fast, reliable, and robust.</p>
Table of Contents (21 chapters)
Learning MS Dynamics AX 2012 Programming
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Links
Debugger
Index

Datatypes


We will now take a look at the different kind of datatypes you can use in AX. They can be separated into two main groups:

  • Primitive datatypes

  • Composite datatypes

Primitive datatypes

Primitive datatypes are the building blocks of the programming language. They are used to store a single value based on the type in runtime code. The values that can be stored for each datatype varies depending on the datatype that is used. If you want to store a text string, you can use the string datatype. If you want to store a date value, you can use the date datatype or perhaps utcdatetime. You can also use the datatype anytype if the type of data read into the variable is decided at runtime.

In the next chapter, we will create extended datatypes and see how they can be used to easily create fields in a table. All of the extended datatypes extend primitive datatypes. The different primitive datatypes available in AX are as follows:

  • String

  • Integer

  • Real

  • Boolean

  • Date

  • Enum

  • timeofday

  • utcdatetime

  • anytype

String

The...