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

Forms


Forms are used for basic user interaction to display data to users and to retrieve data from users. In addition, users can also start actions from a form. Starting an action from a form compared to starting the same action from a menu can be very different as the user can have a record active when inside a form. Hence, the user can open a new form or report with data related to the record selected.

This function to link records across forms is incredibly simple to implement in AX when the tables used in the two forms relate to each other. This functionality is achieved through the Args class that we discussed in Chapter 2, The X++ Language, and through relations as you learned in the previous chapter.

Main components of a form

A form has five subnodes that we will discuss in more detail:

  • Methods: Methods enable the developer to write code that is relevant only to the current form.

  • Data Sources: Data sources are links to tables and are used to fetch data from the database and make that...