[英]How to show lookup window on button click in sub grid form of CRM?
I need your help.我需要你的帮助。 I want to know how to show a lookup window when user click on button which is exists in sub grid form of an entity.
我想知道当用户单击实体的子网格形式中存在的按钮时如何显示查找 window。 I have created a button called "Add existing Inquiries" on Inquiries entity using ribbon workbench, but don't know how to create command for the default CRM lookup window.
我使用功能区工作台在查询实体上创建了一个名为“添加现有查询”的按钮,但不知道如何为默认 CRM 查找 window 创建命令。 When user click the button, lookup should open which will ask user to select record form existing entity.
当用户单击该按钮时,应打开查找,该查找将要求用户从现有实体中查看 select 记录。
You are looking for lookupObjects
method.您正在寻找
lookupObjects
方法。 Read more 阅读更多
Opens a lookup control to select one or more items.
打开对 select 一个或多个项目的查找控件。
Xrm.Utility.lookupObjects(lookupOptions).then(successCallback, errorCallback)
Use a custom JS function command in Ribbon button, then utilize the above method in that JS webresource function.在功能区按钮中使用自定义 JS function 命令,然后在该 JS webresource function 中使用上述方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.