Book Image

Mastering Microsoft Dynamics AX 2012 R3 Programming

By : Simon Buxton, Mat Fergusson
Book Image

Mastering Microsoft Dynamics AX 2012 R3 Programming

By: Simon Buxton, Mat Fergusson

Overview of this book

<p>Due to its interesting capabilities such as finance and supply chain management, business intelligence and reporting, project management, and so on, Microsoft Dynamics is one of the most widely used solutions adopted by many organizations across the globe. This book is a step-by-step tutorial that covers elements from the initial design through to development. Each concept is fully explained and demonstrated by the creation of a real-world project. You will learn some really useful, advanced development techniques such as extending your code with metadata and exception handling.</p> <p>This book is an invaluable tutorial if you are moving from another ERP system or language, or if you are a technical consultant with a desire to create efficient functional designs and business solutions.</p>
Table of Contents (21 chapters)
Mastering Microsoft Dynamics AX 2012 R3 Programming
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adding secondary list pages


Secondary list pages allow us to display a subset of data without having to write a new list page, interaction class, or query. Typically, these are used to show data based on a status, for example, open purchase orders, sales orders for customers on hold, and so on.

We will create two types of secondary list pages: one for a status field on the vehicle, and the other to list vehicles that have an appointment.

Adding a list page for active vehicles

An active vehicle is determined by the VehicleStatusId field, so we will use this in order to filter the data in the list page. Prior to AX 2012, this was done by modifying the form to add a range to the form data source's query. This led to the code being written onto the form itself, which isn't possible on a list page. This is a good thing, as it forces us to use a better, more extendable practice.

Another method would be to simply duplicate the query, but this means duplication of effort and maintenance—always to be...