Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Dynamics 365 Application Development

You're reading from   Dynamics 365 Application Development Master professional-level CRM application development for Microsoft Dynamics 365

Arrow left icon
Product type Paperback
Published in Jan 2018
Publisher
ISBN-13 9781788399784
Length 418 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Deepesh Somani Deepesh Somani
Author Profile Icon Deepesh Somani
Deepesh Somani
Nishant Rana Nishant Rana
Author Profile Icon Nishant Rana
Nishant Rana
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Customize Application Navigation 2. Design Apps Using App Module Designer FREE CHAPTER 3. Define Processes Using Visual Process Designer 4. Define Business Rules Using Business Rule Designer 5. Creating Custom Business Apps 6. Automate Business Processes Using Microsoft Flow 7. Develop Apps using Web API 8. Leverage Azure Extensions in Dynamics 365 9. Using Editable Grids in Apps 10. Configure Microsoft Cognitive services 11. Train the Users through Learning Path 12. Other New Features in Dynamics 365 13. Other Books You May Enjoy

Using JavaScript in Editable Grid


JavaScript is used in Dynamics 365 to provide customer-side validation, and for other client-side requirements. Editable grids also support JavaScript. The editable grid supports three types of events, which are mentioned in the following points:

  • OnRecordSelect – This event is triggered when the user selects a record in an editable grid
  • OnChange – This event is triggered when any of the columns on the editable grid entity row is changed
  • OnSave – This event is triggered by the Save button

The following gives a brief example of using JavaScript with Editable Grid:

Following is a scenario, which we will implement on an editable grid for opportunity:

  • If the probability is greater than 70%, then set the rating of opportunity to hot
  • If the probability is between 50% to 69%, then set the rating to warm
  • If the probability is less than 50%, then set the rating to cold

Note

Prerequisite: To start working on this example, first add out of box fields, namely Rating and Probability...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime