- I created a new Entity "all_Products" → contains all types of products. = Good
- I created a page containing a listview nested in a dataview - The dataview’s datasource is the entity “All_Products” = Good
- The listview’s datasource is a microflow. = Good
- The microflow get’s triggered by the OnChange event of the radiobuttons. = this is wrong.
The onchange event should only perform a refresh (Onchange, w/o change members and just a refresh)
the datasource mf of the listview will then be triggered and return the list to the listview
In addition to the answers of Andreas;
An option would be to have a non persistable entity to capture your search/filter value:
Create the page like this; an dataview containing the NP search object and a nested list;
Refresh the ProductSearch object onchange → this will trigger the Datasource of your nested list to retrieve the correct list.
On another note:
good luck ;-)
You could add a helper entity and place it around your dataview. Place your selections in your helper entity and trigger a refresh on change. This will also refresh the nested listview.
Use a datasource microflow for your listview that returns the objects based on the selection in your helper. The helper is available as parameter in your datasource microflow.
Sorry, I thought I understood it but apparently not.
See following microflow. Basically i check which radiobutton is checked and then I retrieve a list based on the outcome of the decision. Finaly, I create an end-event for each outcome and return the representative list.
Maybe I haven’t explained everything completely.
At this point I have 9 entities.
The entity “Product” contains a attribute product_type (enumeration) which I want to use as a filter to set the datasource of the listview.
At this point i created the following:
A page containing a dataview (source = “product”) containing radiobuttons for filters. In the dataview I also have a listview with datasource set to “microflow”. The microflow contains a decision that checks which radiobutton is selected, then retrieves a list of objects associated with that decision, then I use a “change object”-activity to refresh the page and set the end event return type to list (list type depends on the outcome of the decision).
Is this possible? Because as far as I know the nested listview doesn’t know which end-event to pick in the microflow so he just picks the one where the decision outcome is set to “empty”
The listview does not decide which endpoint is used, the microflow does that. Whatever the microflow returns (It does not matter which endpoint) will be used by the ListView.
I still think the problem is your refresh. You are doing the refresh in your datasource microflow but once this refresh is done, it does not refresh if you change the selection on your enum (In your dataview). This selection needs to have an onChange microflow that refreshes your Product object. This should cause the datasource microflow to run again and return the updated list.
@rené van Hofwegen
- I created a new Entity "all_Products" → contains all types of products.
- I created a page containing a listview nested in a dataview
- The dataview’s datasource is the entity “All_Products”
- The listview’s datasource is a microflow.
- The microflow get’s triggered by the OnChange event of the radiobuttons.
Am I still doing something wrong in this case?