[英]Pass Unified Service Desk Context Parameter value inside Javascript webresource CRM
I am working on CRM 8.2 and Unified Service Desk 4.1.我正在开发 CRM 8.2 和 Unified Service Desk 4.1。 Now, there is a requirement where i want to pass some parameter values from within inside Unified Service Desk Data Parameters to JavaScript Webresource.
现在,需要将一些参数值从统一服务台数据参数内部传递给 JavaScript Webresource。
I have seen some articles where we can inject our data to javaScript but only for Unified Interface Pages.我看过一些文章,我们可以将数据注入 javaScript,但仅限于统一接口页面。 But mine are not those.
但我的不是那些。
My actual requirement is to show/hide ribbon button on basis of USD Data parameter value, so if there is any workaround then I can work on that as well.我的实际要求是根据USD Data 参数值显示/隐藏功能区按钮,因此如果有任何解决方法,那么我也可以进行处理。
You can definitely do so.你绝对可以这样做。 I just answered the other day for passing form context to webresource.
前几天我刚刚回答了将表单上下文传递给 webresource 的问题。 Here is the link
这是链接
But for your specific case, you need Ribbon workbench and form context and primary context.但是对于您的特定情况,您需要功能区工作台以及表单上下文和主要上下文。 This is also directly possible and you can do so.
这也是直接可能的,您可以这样做。 Here is the perfect example for you.
这是适合您的完美示例。 I have used exact same in lot of my projects.
我在很多项目中都使用了完全相同的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.