As we all know in v9 UCI, this piece of code is no longer working: myGrid.control.SetParameter("fetchXml", fetchXml);
MS did not even provide an alternative to this method so I have a problem because a lot of our grids use this method.
Now looking at the grid control methods, I found this "setFilterXml(filter)" but MS did not document what the "filter" format is and I don't think it is completed yet.
So I have I this situation:
A - the orange bars at the top is a web resource inside an iFrame. The parent form is "B".
In "B", there is the grid which gets its data from a View.
The "A" orange bar contains the various "Stages" of a "Plan".
The "B" grid contains the "Objectives" of a specific "Stage".
So when I click a bar section of "A", the associated "Objectives" are show in the "B" grid.
You could say, the "A" bar behaves like a Lookup but if you look closely at it, the bar resembles sort of like a "workflow" (stages).
So those stages in "A" are in order and each section of the bar is given a specific colour depending on its status.
So "orange" colour is like "Incomplete".
Whereas a green colour means "Completed"... and so on.
Now because the "grid.control.setParameter()" no longer works, all of the associated "Objectives" are shown.
If I click one of the bar section, nothing happens because "grid.control.setParameter()" fails.
So what the heck am I going to do? I could use JS and do a FetcXML, get back the JSON response and populate that grid control but no I can't.
There is no method available to let me do that one.
https://docs.microsoft.com/en-au/powerapps/developer/model-driven-apps/clientapi/reference/grids
Now the bar "A" section is not really a lookup so don't suggest the use of Lookup filters.
I could render the grid as a table and populate the rows with data from FetchXML but that grid control is much better for displaying the rows of data.
Is there anyone there who can suggest another way?
a2z