O'Reilly logo

Learning MS Dynamics AX 2012 Programming by Erlend Dalen, Mohammed Rasheed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we discussed how to manipulate data using X++. We also saw how to write code that inserts, updates, and deletes records without breaking the relationship that the record has with data in other tables.

The ttsbegin, ttscommit, and ttsabort operators and the selectforupdate keyword were also introduced to show you how to create and handle a transaction scope.

After reading about insert_recordset, update_recordset, and delete_from, you also learned how to manipulate many records within one database transaction, which is a lot more efficient than using the insert, update, or delete methods.

In addition, we also went through the difference between the insert, update, and delete methods and the doInsert, doUpdate, and doDelete ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required