hi Tanguy,
Regarding the case,
"For example, display only records that have the optionset category set to 'Business' if the parent record is set to 'Business' too."
The general pattern we believe its manifest should look like below:
<property name="property1" bound>
<property name="property2" bound>
......
<property name="propertyN" bound>
<dataset>
<property-set name="aliasOfProperty" bound>
.......
</dataset>
Regarding the setFilter/refresh/clearFilter/find_right_column. We do have sample controls (they might not in doc at this moment). I attached the sample control solution and the source code.
The sample control is a data-set control will help you be familiar with the filtering related API and how to find right column. You could put it on any entity home page grid. There will have a 'search box' in the control and it will be searched based on your configurd 'property-set'.
Also, the sample control is a data-set control does not mean these code only applied to 'data-set' control. It works also when 'data-set' is not at first place.
It does not have to be a lookup. It could be any type of attribute eventually.
Let's say I want to display only records that have the same optionset, boolean or string value on both entities.
For example, display only records that have the optionset category set to 'Business' if the parent record is set to 'Business' too.
hi Tanguy,
For functionally realize what u need, the dataset results will be updated based on an attribute(lookup attribute) change, it's more like the quick view form scenario and Dynamics do have a OOB way for this
You could create a quick view form and have the subgrid on it. Then the subgrid should listen to the quick view form's bound lookup value update.
Regarding PowerApps Component Framework solution,
Please note, a control with a bound property and a <data-set> is treated as a field control, not a data-set control.
But even it's a field control, I guess you could have <data-set> as 2nd propery and do request and render. Visually it should be similar to a traditional data-set control
I'm not the PCF team but I can say that I've not been able to get a field value bound to a dataset control.
What I've ended up doing was using a webapi request to retrieve the value from the form that way ( you need to read the dataset to get the entity and (context.mode as any).contextInfo to get the guid of the record the grid is on.
Anyone from PCF team?
Oh Yeah! My bad. Apologies for the confusion.
HI @TanguyT
Filter(TestList,Title = DataCardValue3.Text)
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1