简体   繁体   English

如何从 JS Dynamics crm 打开新形式的捆绑包?

[英]How to open a new form of bundle from JS Dynamics crm?

I need to add a custom ADD BUNDLE button to a form that will open a product-bundle form after clicked, my problem is with the functionality, I want to use this: Xrm.Utility.openEntityForm("Entity");我需要将自定义添加捆绑按钮添加到单击后将打开产品捆绑表单的表单,我的问题在于功能,我想使用它: Xrm.Utility.openEntityForm("Entity"); to open a product bundle form, but the only entity I can use is Product, How can I open the product form in Bundle type and not just a product form?打开产品捆绑表单,但我唯一可以使用的实体是产品,如何以捆绑类型打开产品表单而不仅仅是产品表单?

**EDIT: I need to know how to open a product form that its product structure is bundle (3). **编辑:我需要知道如何打开其产品结构为捆绑 (3) 的产品表单。

捆绑类型的产品形式

You can use this snippet to do it.您可以使用此代码段来执行此操作。 Read more 阅读更多

var parameters = {};
parameters["productstructure"] = 3;
Xrm.Utility.openEntityForm("product", null, parameters);

On a side note, depending on your CRM version - this Xrm.Utility.openEntityForm is deprecated.附带说明一下,取决于您的 CRM 版本 - 此Xrm.Utility.openEntityForm已弃用。 You may have to change to Xrm.Navigation.openForm in future.您将来可能需要更改为Xrm.Navigation.openForm Learn more 学到更多

如何访问<div>来自动态 CRM 表单 2016 的元素/DOM 对象</div><div id="text_translate"><p>我需要更改 CRM dynamics 2016 中 CRM 表单通知元素的背景颜色以供试用。 我知道它不受支持,但这是供最终用户试用的。 div 元素详细信息如下 -</p><pre> &lt;div class="Notifications Notifications-strict Notifications-strict-bottom" id="crmNotifications" style="height:; display: block;" size="3" maxheight="51"&gt;</pre><p> 我试过使用window.parent.getElementById('crmNotifications').style.backgroundColor;</p><p> 但没有运气。 我还听说无法从实体表单访问 DOM 元素。 有没有办法改变背景颜色。</p></div> - How to access the <div> element / DOM object from the dynamics CRM form 2016

暂无
暂无

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

相关问题 在crm JS中使用params打开新的实体表单 - open new entity form with params in crm JS CRM Dynamics,如何使用一种形式传递值,并使用Xrm.Utility.openEntityForm()在新的Entity(form)中设置值; - CRM Dynamics , How to pass values from one form and set the values in a new Entity(form) using Xrm.Utility.openEntityForm(); 如何在Dynamics CRM中将外部源打开为对话框 - How to open external source as dialog in Dynamics CRM 如何在Dynamics CRM 2015中向表单添加按钮 - How to add a button to a form in Dynamics CRM 2015 如何从Microsoft Dynamics CRM表单到html Web资源获取价值 - how to get value from microsoft dynamics crm form to html web resource 如何访问<div>来自动态 CRM 表单 2016 的元素/DOM 对象</div><div id="text_translate"><p>我需要更改 CRM dynamics 2016 中 CRM 表单通知元素的背景颜色以供试用。 我知道它不受支持,但这是供最终用户试用的。 div 元素详细信息如下 -</p><pre> &lt;div class="Notifications Notifications-strict Notifications-strict-bottom" id="crmNotifications" style="height:; display: block;" size="3" maxheight="51"&gt;</pre><p> 我试过使用window.parent.getElementById('crmNotifications').style.backgroundColor;</p><p> 但没有运气。 我还听说无法从实体表单访问 DOM 元素。 有没有办法改变背景颜色。</p></div> - How to access the <div> element / DOM object from the dynamics CRM form 2016 如何使用javascript(node.js)从Microsoft Dynamics CRM接收Webhooks? - How to receive webhooks from Microsoft's dynamics CRM using javascript(node.js)? Dynamics CRM 365-如何打开基于相关记录过滤的视图 - Dynamics CRM 365 - How to open view filtered based on related record 我想在Dynamics 365 crm中从一种形式重定向到另一种形式 - I want to redirect from one form to another in dynamics 365 crm 从弹出式CRM Dynamics 2015中的父表单获取数据 - Get data from parent form in a popup CRM Dynamics 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM