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

Displaying custom options in another way


The global system functions, such as pickList() and pickUser(), allow developers to build various lookups displaying a list of custom options. Besides that, the standard Dynamics 365 for Finance and Operations application contains a few more useful functions, allowing us to build more complex lookups of custom options.

One of the custom functions is called selectSingle(), and it provides the user with a list of options. It also displays a checkbox next to each option that allows users to select the option. To demonstrate this, we will create a new class that shows the usage of these functions.

How to do it...

  1. Add a new project in the solution name DisplayCustomOptionsAnotherWay.
  2. Find a SysListSelect form in AOT and select customize to add it in the project.
  3. Add new method selectSingle and add the following code:
        public void selectSingle() 
            { 
               singleSelect = true; 
            } 
  1. Now select project and add a new item, a...