Hi All,
The fetchxml I need is with linked entity and with 'under' condition.
'<link-entity name="account" from="accountid" to="customerid" link-type="inner" alias="bm">' +
'<filter type="and">' +
'<condition attribute="accountid" operator="under" uitype="account" value="{' + accountId + '}" />' +
'</filter>' +
'</link-entity>'
The JavaScript and Plugin both are working in traditional Dynamics 365, but NOT in HUB.
Let me tell you, what I have tried.
JavaScript, I tried these to set and refresh:
formContext.getControl("subgridname").getGrid().setParameter("fetchXml", fetchXml);
parent.Xrm.Page.getControl("subgridname").setFilterXml(fetchXml)
window.parent.document.getElementById("subgridname"); -> cannot find 'control' using this one.
plugin, I tried on 'RetrieveMultiple' event and replace context.InputParameters["Query"]
With either JavaScript or Plugin,
As the subgrid shows correct result in traditional Dynamics 365, could I think, this is another defect in Hub?
If anyone has working examples in HUB, could you peleas share?
Thank you very much in advance.
Regards,
Zhenyu
*This post is locked for comments