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

Record-based manipulation


The record-based manipulation is used to manipulate one record at a time. The typical usage of record-based manipulation is when you need to manipulate only one record or if you have to manipulate many records and you are unable to use the set-based operators or would like to commit each record at a time.

In the following sections, we will look closer at the insert, update, and delete operations.

Insert

Perhaps the most common method to manipulate tables in AX is to insert them using the insert() method. It is used to insert the data currently held in a table variable (an object) to a new record in the database (that is, the data is physically committed to the database). The insert() method in X++ is a table instance method and so it is performed on a table variable, which is also referred to as a table buffer.

This means that the insert() method will only be able to insert one record in the database at a time.

If you need to insert multiple records, you will have to...