Advanced Event-Handling Tips and Tricks

If you are familiar with JavaScript and HTML, you might be thinking, “How can I add JavaScript code for all the other events that any regular HTML INPUT control has, such as the onkeypress, onkeyup, or onkeydown events?” Although you can have Microsoft Dynamics CRM perform these types of actions, it requires a little more effort. Let’s look at an example of how to add the onkeyup event.

Suppose that you have a custom entity called House to which you have added the following custom fields: width, height, and area. You want to have the area automatically calculated from the width and height without forcing the user to move the focus from one control to the other to see the changes. You could add the following ...

Get Microsoft Dynamics CRM 2011 Unleashed 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.