简体   繁体   English

Dynamics CRM Unified服务台弹出结果

[英]Dynamics CRM Unified Service Desk Popup Result

We are using Dynamics CRM 2016 with USD 2.0 and are having problems with popups within the system returning results. 我们正在将Dynamics CRM 2016与USD 2.0配合使用,并且系统返回结果时出现弹出窗口问题。

There are several places where we open webresources in new windows (as floating panels), do some work in the new window then need to interact with the parent window to set some fields. 在很多地方,我们都在新窗口中打开Web资源(如浮动面板),在新窗口中做一些工作,然后需要与父窗口进行交互以设置一些字段。

This works perfectly in a browser using window.open and window.parent.Xrm... to set the value. 在使用window.open和window.parent.Xrm ...设置值的浏览器中,此方法效果很好。 However in USD, the window.parent variable is null and we cannot find any other way to get the parent window to set a value. 但是,以美元为单位,window.parent变量为null,我们无法找到其他任何方法来获取父窗口来设置值。

Any help or examples would be appreciated. 任何帮助或示例,将不胜感激。

This may be a two-part challenge. 这可能是一个两部分的挑战。 The first challenge involves ensuring that your Web Resources are actually being loaded within USD, in Hosted Controls rather than external browser windows. 第一个挑战涉及确保您的Web资源实际上是在USD中,在Hosted Controls中而不是在外部浏览器窗口中加载的。 The second challenge involves communicating between the Hosted Controls involved, once everything is happening within USD. 第二个挑战涉及一旦美元内发生所有事情,则在所涉及的托管控件之间进行通信。

In USD, if window.open is launching external browser windows, then your Window Navigation Rules (or lack thereof) are allowing your Web Resource navigations to leave USD. 在USD中,如果window.open正在启动外部浏览器窗口,则您的窗口导航规则(或缺少窗口导航规则)允许您的Web资源导航离开USD。 To pass values as needed here, it's necessary to reign in such navigations using Window Navigation Rules. 要在此处根据需要传递值,有必要使用“窗口导航规则”进行此类导航。 Define a Hosted Control that lives on FloatingPanel, and experiment with Rules until your Web Resources are loading as desired. 定义一个驻留在FloatingPanel上的托管控件,并尝试使用“规则”,直到根据需要加载Web资源。

If the Web Resource is loading in a Hosted Control, then it just needs to speak USD. 如果Web资源正在托管控件中加载,则只需要说出美元即可。 When it's time to return values, check if window.IsUSD, and raise a custom Event: 当需要返回值时,请检查window.IsUSD,并引发一个自定义事件:

https://msdn.microsoft.com/en-us/library/dn864970.aspx#EventMoniker https://msdn.microsoft.com/en-us/library/dn864970.aspx#EventMoniker

This will allow you to write Action Calls that can consume your Event's key-value-pairs, which are accessible using [[replacement syntax]] during the Event. 这样,您就可以编写可以消耗事件的键值对的操作调用,可以在事件过程中使用[[替换语法]]对其进行访问。 These Action Calls can RunXrmCommand on your "parent" control (which USD is simply treating as some other non-parent hosted browser), so your return values can ultimately find their way. 这些操作调用可以在您的“父”控件(USD被简单地视为其他一些非父托管浏览器)上运行RunXrmCommand,因此您的返回值最终可以找到自己的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将参数从 Web 应用程序传递到 Unified Service Desk 内的 CRM 案例屏幕 - Pass parameters from Web Application to CRM Case screen inside Unified Service Desk 在Unified Service Desk中打开控制台应用程序 - Open Console Application inside Unified Service Desk 在统一界面 Dynamics CRM 中部署单个组件 - Deployment individual components in unified interface Dynamics CRM Dynamics CRM统一形式的IFRAME的setSrc无法正常工作 - setSrc for IFRAME in Dynamics CRM unified form is not working 在同一台计算机上运行Microsoft统一服务台的2个实例 - Run 2 instance of Microsoft unified service desk on a same machine Dynamics 365 CRM 统一界面中搜索结果的不同视图 - Different Views for Search Results in Dynamics 365 CRM Unified Interface 在 Dynamics CRM 统一接口 OnSave 事件不起作用 - In Dynamics CRM Unified Interface OnSave Event Doesn't Work 在 Dynamics 365 CRM 统一界面中重新加载/刷新子网格时重新加载表单 - Reload Form on reload/refresh of subgrid in Dynamics 365 CRM Unified Interface 扩展 Dynamics CRM 2011 服务 - Extending Dynamics CRM 2011 Service CRM 2011 中帮助台/客户服务的尴尬 email 流程 - Awkward email flow for help desk / customer service in CRM 2011
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM