show the sub grid with filtering two or three fiel

2019-03-03 09:51发布

问题:

I have two custom entity.

I want to show the sub grid with filtering two or three fields that all are look up. In SQL way I want to

 select * from table where field 1 = *** or field 2=*** or filed 3 =*** 

But in CRM it's not possible you can select only one field. I dont know how to add fetch xml and also i dont know, Should I create js on load of form or export solution add filter to fetchxml then import it to crm?

回答1:

Have you tried creating a Custom View where you can set up this filter criteria and use this view on the Subgrid

Here you have the details: https://crmbook.powerobjects.com/system-administration/customization/customizing-views/