crm2011:从JavaScript启动对话框
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了crm2011:从JavaScript启动对话框相关的知识,希望对你有一定的参考价值。
How to launch custom dialog from javascript (for example from custom RibbonButton)
function launchModalDialog(dialogId, typeName, recordId) { // Server Url var serverUrl = Xrm.Page.context.getServerUrl(); // Sanitize RecordId recordId = recordId.replace("{", ""); recordId = recordId.replace("}", ""); // Sanitize DialogId dialogId = dialogId.replace("{", ""); dialogId = dialogId.replace("}", ""); // Create Url var serverUri = serverUrl + '/cs/dialog/rundialog.aspx'; var dialogUri = serverUri + '?DialogId=%7b' + dialogId.toUpperCase() +'%7d&EntityName=' + typeName + '&ObjectId=%7b' + recordId + '%7d'; window.showModalDialog(dialogUri); // Reload form window.location.reload(true); }
以上是关于crm2011:从JavaScript启动对话框的主要内容,如果未能解决你的问题,请参考以下文章
JavaScript 有用的Dynamics CRM 2011表格脚本花絮
Dynamics CRM 2011 过滤从 Web 服务返回的数据
从 Microsoft Dynamics CRM 4.0 server迁移到 Microsoft Dynamics CRM 2013 Server