I have an question about one functionality, if it is issue or feature.
I have table of organizations and feature layer of places, both connected by relation. In my app I have more lists of organization on according widget. Each list contain part of organization dataset based on attribute kind of organization (for each kind I have view in ExB). If you select organization you can see feature info and list of buildings connected to organization and also map, where are these buildings. So I use message action for trigger record selection changes (organization) -> framework (filter data records). It works really good for one list widget, but when I want to combine more widget with same setting I see only "No data".
If I understand correctly that is because I filter framework by first widget, so the second can only filter from these filtered framework, but the first one has the option to change back, restart or filter new feature. My question is if this way is, how it should work, or is it bug?
Here is app, where you can test my problem (it is different one, because my is private): https://experience.arcgis.com/experience/71ba1df4bc484295897ed708f0ca9bac/ I have here the option with filtering and also with selecting to compare. But selecting is for me not option for real app, because I want to have option to click on one place in list and open second section view and and it is not possible, when it is already selected.
Solved! Go to Solution.
@AlixVezina Thank you for answer. Ok, now I know that it is expected behavior (multiple message actions filter the same data, the filters are "and" (added) together) and I need to fix my app in different way.
I tried your workaround and it is not solution for me, because user have to at first unselect data in first list and after it select data in second list. And it is confusing, not user-friendly. Without following this workflow "no data" is again displayed.
So I tried different way. Now I have more data sources (maps). For each map There is view.
From each data view I have a list.
And now I use section widget. Each section view has list, map and feature info based on one datasource map. And the source list has message actions to record selection changes to filter data in framework and the important one - open corresponding view.
I think it works correctly, but I'am only afraid that it is so complicate and it can slow down my app.
Maybe the biggest problem is that there is message action to select/filter data, but not one to unselect/unfilter. It could help me not only in this app, but also in others, for example when I change pages in menu and I need clear framework. Now I have to make fake menu with bottoms and refresh whole app.
Here is link to my new test app with my workaround: https://experience.arcgis.com/experience/cf2919e5458f468b90aa4e5311365796/
Awesome! That is a nice way to set it up. I don't think performance should be too much of a concern here.
Another option may be using the Filter widget instead of the list for filtering? The Filter widget provides the ability to set an "OR" operation and to add a reset button. Each filter can also be set against a different data source view.
Hi @AnnaHradecká , I can help troubleshoot this.
Please would you be able to also share a link to your web map, and some screenshots of your data view and List widget configurations? I'd like to better understand which widget is connected to which data source, and what actions are configured fo each.
You can send this information to me via email > avezina@esri.com
Of course, @AlixVezina, here are screenshots of view and list widgets configuration in my origin app.
And link to map (one for both test and origin app): Katalog přístupnosti
Thank you @AnnaHradecká , please give me some time to investigate and I'll get back to you on this.
@AnnaHradecká After some discussions with the team, I learned that when multiple message actions filter the same data, the filters are "and" (added) together. So this is expected behavior, but we'll need to further evaluate this use case.
It appears there may also be a bug when clicking between the two lists and clearing the selections in the lists. The team will investigate this further and see if it can be fixed with the next update this fall.
Workaround
A potential workaround in your case may be to add the same data sources your app more than once and creating separate data views in each layer. Then you can setup actions to make sure these layers also "speak" to the map layers.
For e.g., if you add the Feature Layer directly to your app's data sources twice:
Then create distinct data views within each separate data source for your table layer:
The you'll need to setup the filter records message action in the List widgets to filter the data from the map. But instead of being able to use the data's relationship to trigger the action, you'll need to use fields (assuming I did this correctly below...)
I hope this all makes sense.
@AlixVezina Thank you for answer. Ok, now I know that it is expected behavior (multiple message actions filter the same data, the filters are "and" (added) together) and I need to fix my app in different way.
I tried your workaround and it is not solution for me, because user have to at first unselect data in first list and after it select data in second list. And it is confusing, not user-friendly. Without following this workflow "no data" is again displayed.
So I tried different way. Now I have more data sources (maps). For each map There is view.
From each data view I have a list.
And now I use section widget. Each section view has list, map and feature info based on one datasource map. And the source list has message actions to record selection changes to filter data in framework and the important one - open corresponding view.
I think it works correctly, but I'am only afraid that it is so complicate and it can slow down my app.
Maybe the biggest problem is that there is message action to select/filter data, but not one to unselect/unfilter. It could help me not only in this app, but also in others, for example when I change pages in menu and I need clear framework. Now I have to make fake menu with bottoms and refresh whole app.
Here is link to my new test app with my workaround: https://experience.arcgis.com/experience/cf2919e5458f468b90aa4e5311365796/
Awesome! That is a nice way to set it up. I don't think performance should be too much of a concern here.
Another option may be using the Filter widget instead of the list for filtering? The Filter widget provides the ability to set an "OR" operation and to add a reset button. Each filter can also be set against a different data source view.