首页 > 编程语言 > 详细

转 Dynamics CRM Alert and Notification JavaScript Methods

时间:2016-12-22 16:52:25      阅读:225      评论:0      收藏:0      [点我收藏+]

http://www.powerobjects.com/2015/09/23/dynamics-crm-alert-and-notification-javascript-methods/

 

 

Before CRM 2013, if you wanted to alert a user on a form within the browser, the only method available was the standard JavaScript alert. This method would open an alert window over the record the user is viewing, which then must be acknowledged in order for the user to continue.

The code,

produces the pop up window as illustrated below.

技术分享

With CRM 2013, Microsoft introduced an additional alert method that is specific to CRM, Xrm.Page.ui.setFormNotification. This newer method allows you to specify three different types of alerts: error, information, and warning. Furthermore, instead of popping a window open over the current window, setFormNotification embeds the notification in the CRM page itself. These codes:

produce the notifications in the screenshot below that are visible just under the Account record title.

技术分享

The code

can be used to clear these notifications.

Additionally, you can call out specific fields with the setNotification method. The code

produces the notification attached to the fax field on the Account record shown below.

技术分享

With these different methods, you can now carefully choose how overt or subtle you would like to be in calling out important information on a record to users.

Want to stay up to date with our blog? Subscribe today!

Happy CRM’ing!

转 Dynamics CRM Alert and Notification JavaScript Methods

原文:http://www.cnblogs.com/BinBinGo/p/6211872.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!