Select to view content in your preferred language

Option for a combined toggle logic for pages navigation

365
4
a month ago
ToniZimpel
New Contributor

Hey,

I am currently building a Web App with ExB and I will probaby have 32 almost duplicate pages (just the values in the content are different, but the design and widgets are the same). 

I have 3 fields each with multiple options. Field A has 4 options, Field B has 2 and Field C has also 2. I want the user to be able to select an option in each of these fields and then the logic should redirect them to the corresponding page. In total there are 32 options/pages. So for example a user chooses the following:

- Field A option 3
- Field B option 1
- Field C option 2
--> Redirect to page which corresponds to that specific choice

From what I've read there is no available logic between widgets but maybe there is another possibility to solve my problem?

0 Kudos
4 Replies
JeffreyThompson2
MVP Frequent Contributor

I can't think of a way to make the Page automatically redirect, but here's something you could do.

  1. Create a Hosted Table in your Portal environment with the columns being Fields A, B and C, a name, and a URL for the Pages. You may alternatively just want to add a URL column to your existing data.
  2. Use a Filter Widget or set of Filter Widgets to filter Fields A, B and C.
  3. Add a List Widget based on the Hosted Table where each item in the list is a link using the URL.

The net result is the user can filter down the list of links until they get to the right one.

GIS Developer
City of Arlington, Texas
NicoleJohnson
MVP

I tried this last year (with the user navigating via a search widget + a list widget instead of a filter widget + a list widget) and wasn't able to come up with a solution that played nicely with a (required) splash screen. Did you try what Jeff proposed? If you did, how did it go?

0 Kudos
ToniZimpel
New Contributor

I haven't tried it out yet because 32 pages are just too much to maintain. If I update one thing in a page or the layer I have to update everything. Right now I just have one master layer with all the data inside. I added some attributes which specify from which layer the data stems (these would be the field option A, B and C).Then I added a cascading filter widget with multiple filters which go through the field options. After the filters are set only the data from one layer remains.

It works for the lists but I get it to work to also filter the map. Esri apparently removed the ability to have multiple filters for group layers. Is it correct that you can only have multiple filters if you select one layer?

0 Kudos
NicoleJohnson
MVP

Yes, if you create a group filter, the group SQL expression builder currently only allows for one clause (assuming this is what you mean by "multiple filters"). You can always add more filters to the same filter widget, but yeah, it's not the same options as when you're working with just one layer.

0 Kudos