Chapter 4. Rules and Events

In this chapter, we will cover the following topics:

  • Form load event usage
  • Form save event usage
  • Field change event usage
  • Working with tabs and sections
  • Combining events
  • Enforcing business rules

Introduction

Handling specific events is something everybody expects from an application. While JavaScript has its own event handling model, working with Dynamics CRM offers a different set of events that we can take advantage of.

Note

The JavaScript event model, while it might work, is not supported, and definitely not the approach you want to take when working within the context of Dynamics CRM.

Some of the most notable events and their counterparts in JavaScript are described in the following table:

Dynamics CRM 2011

JavaScript

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.