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

Using a form to build a lookup


For the most complex scenarios, where you need some advance lookups with more options on data filtration or selection; Dynamics 365 for Finance and Operations offers the possibility to create and use a form as a lookup, by creating a new form.

Similar to forms, the form lookups support various features, such as tab pages, event handling, complex logic, and so on. In this recipe, we will demonstrate how to create a lookup using a form. As an example, we will modify the standard customer account lookup to display only the customers who are not placed on hold for invoicing and delivery.

How to do it...

  1. Add a new project and create a new form named CustLookup. Add a new data source with the following properties:

Property

Value

Name

CustTable

Table

CustTable

AllowCheck

No

AllowEdit

No

AllowCreate

No

AllowDelete

No

OnlyFetchActive

Yes

  1. Right-click on Design and Add form PatternLookup - Basic on design.
  2. Add a new grid control to the form's design with the following properties:

Property

Value...