[英]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 学到更多
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.