Book Image

Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

By : Abhimanyu Singh, Deepak Agarwal
Book Image

Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

By: Abhimanyu Singh, Deepak Agarwal

Overview of this book

Microsoft Dynamics 365 for Finance and Operations has a lot to offer developers. It allows them to customize and tailor their implementations to meet their organization’s needs. This Development Cookbook will help you manage your company or customer ERP information and operations efficiently. We start off by exploring the concept of data manipulation in Dynamics 365 for Operations. This will also help you build scripts to assist data migration, and show you how to organize data in forms. You will learn how to create custom lookups using Application Object Tree forms and generate them dynamically. We will also show you how you can enhance your application by using advanced form controls, and integrate your system with other external systems. We will help you script and enhance your user interface using UI elements. This book will help you look at application development from a business process perspective, and develop enhanced ERP solutions by learning and implementing the best practices and techniques.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface

Building a tree lookup


The form's tree controls are a user-friendly way of displaying a hierarchy of related records, such as a company's organizational structure, inventory bill of materials, projects with their subprojects, and so on. These hierarchies can also be displayed in the custom lookups, allowing users to browse and select the required value in a more convenient way.

The Using a tree control recipe in Chapter 2, Working with Forms, explained how to present the budget model hierarchy as a tree in the Budget model form. In this recipe, we will reuse the previously created BudgetModelTree class and demonstrate how to build a budget model tree lookup.

How to do it...

  1. In the AOT, create a new form named BudgetModelLookup. Set its design properties as follows:

Property

Value

Frame

Border

WindowType

Popup

  1. Add a new Tree control to the design with the following properties:

Property

Value

Name

ModelTree

Width

250

 

  1. Add the following line of code to the form's class declaration:
        BudgetModelTree budgetModelTree...