Hi Alex,
The way that I typically accomplish this is to have an association on the search NPE to the CityRide entity. When the search is executed, you can clear and re-populate this association with the search results, as long as you have the refresh client box checked the data grid will update.
For this to work you will need to have the data grid populated over the association to the search NPE. You can have the microflow that is the data source to your data view load an unfiltered list of CityRide.
I attempted to implement this by creating a new app and followed all of the steps outlined below:
Create a new entity in to domain model:
Create a NPE and create an association to the entity created prior:
Generate overview pages for the entity using the built in entity actions:
Create a data view and place the data grid inside the data view. This is required because otherwise I cannot assign a value to the switch widget:
Assign the data view to a microflow which returns a new "TestSearch" object:
Create a multi grid filter over the text attribute with a text filter widget (and some cleanup and adjustments to the table):
Go to change the switch On Change event to a microflow...
What exactly am I doing here in this microflow? You mention clearing and re-populating the association with the search results, how do I do that? I also can't set the data grid to an association because it won't let me. If I select the data source to be an association, it doesn't let me select one:
If I select database as the source, then it will show the associations as an option:
But it will give me an error if I try to select it...
What on earth do I need to do to achieve this extremely basic test exercise?
I was able to get this working via the NPE association, I will document the complete steps from start to finish for future reference once i have the time.