Book Image

Extending Microsoft Dynamics NAV 2016 Cookbook

By : Alexander Drogin
Book Image

Extending Microsoft Dynamics NAV 2016 Cookbook

By: Alexander Drogin

Overview of this book

Microsoft Dynamics NAV is an enterprise resource planning (ERP) software suite for organizations. The system offers specialized functionality for manufacturing, distribution, government, retail, and other industries. Its integrated development environment enables customizations with minimal disruption to business processes. The book starts explaining the new features of Dynamics NAV along with how to create and modify a simple module. Moving on, you will learn the importance of thinking beyond the boundaries of C/AL development and the possibilities opened by with it. Next, you will get to know how COM can be used to extend the functionalities of Dynamics NAV. You’ll find out how to extend the Dynamics NAV 2016 version using .NET interoperability and will see the steps required to subscribe to .NET events in order to extend Dynamics NAV. Finally, you’ll see the cmdlets available to manage extension packages. By the end of the book, you will have the knowledge needed to become more efficient in selecting the extending methods, developing and deploying them to the Dynamics NAV, and practicing the best practices.
Table of Contents (17 chapters)
Extending Microsoft Dynamics NAV 2016 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Exchanging data with add-ins


In this chapter, we learned how to create custom visual controls, call add-in methods from NAV application code, and raise and handle control events. Almost all recipes so far covered controls that accept scalar values in parameter methods. This is good for extensions displaying a single value, but if you need to show a table control, sending values for each table cell one by one is not the best way to fill the dataset. Recipes dedicated to JavaScript controls, explain one possible solution for this problem - sending data to the control as a JSON string. JSON format is native to a JavaScript environment. In .NET controls, wrapping data in a DataTable object is a more common approach.

How to do it...

This recipe shows how to create a custom DataGridView control that shows a list of customers in a table. To populate the control with data, we will employ the DataTable .NET object.

  1. Start a new C# project in Visual Studio based on the Class Library template. In the New...