Select to view content in your preferred language

URL parameters for two layers with different fields

124
0
3 weeks ago
Labels (1)
DebSF
by
Regular Contributor

I've been looking at all the guidance and posts on here but still can't figure out if this is possible.

I'm using the following URL with parameters embedded into a "shell" Experience Builder app:

https://experience.arcgis.com/experience/<app_id>/?data_filter=<data_source_id_1>:reference%3D%27%27#data_s=where%3A<data_source_id_1>%3Areference%3D'{appURL.search.RefParam}'&zoom_to_selection=true

The data_filter hides all features by default, and when the user runs the shell app they just need to put in the RefParam so that a single feature shows up, i.e. https://experience.arcgis.com/experience/<app_id>?RefParam=<user_inserted_ref>

This all works fine for my purposes so far.

However I now want to add in a second layer with the same behaviour. i.e. the second layer is filtered to hide all features and then the user just adds the ref to show a single feature. My difficulties are:

- I can't figure out how to add two data_filters to the URL, it just doesn't seem to apply the second one

- Even if I get this sorted can I add in a second appURL? The field name that I want users to input for the second layer is different to the first - i.e. it's "reference" for the first but just "ref" for the second.

0 Kudos
0 Replies