I'm using the Dashboard module with my XAF application.
I have a dashboard with two datasources (XPO) :
- The first is the XPO class "Prime assurance OFSP" which contains a reference property "Region Prime" which contains a nesteded collection of "Lieux"
- The second is XPO object of type "Lieux"
The second datasource is the datasource of my dynamic list parater.
When the user select the "Lieux" from the parameter, how can filter my first datasource with that data.
Please see attachment for the details.
I hope that my explanation is clear enough and that you can help.
Many thanks in advance.
The Dashboard Suite does not provide built-in functionality to filter properties with nested collections. As a possible solution, you can create a custom filter function that accepts two parameters (a property with a collection and a city parameter value) and returns true or false depending on whether the collection contains the city.