Hello,
We have a sub-grid on the entity's form and the data of this sub-grid depends on some field's value.
To accomplish this we use
grid.control.SetParameter('fetchXml', query);
where
grid is an HTML element of the sub-grid on the entity's form
query is a string which contains a fetch xml query with our field's value.
I know that it is an unsupported way and it works for Dynamics 365 CRM with classic UI but it doesn't work in the v.9 unified interface.
I have spent some time debugging internal CRM scripts and found out that there is a Microsoft.Crm.Client.Core.Storage.DataApi.ListQuery object. And I can call it's "set_FetchXml" function to inject my own fetch xml query into this grid. And it works. But I didn't find a way how to get this object from a sub-grid HTML element.
If anyone did research how to do it, please advise.
Thanks in advance.
*This post is locked for comments