Select to view content in your preferred language

select URL parameter does not apply filter on selection change

382
6
03-25-2025 04:39 AM
MikolajJaworski
Emerging Contributor

Hi!

So I am trying to setup the select URL Parameter, but it doesn't fully work as I expected.

As far as I understand when setting "#data_s=id%3AdataSource_1%3A312" it should select the correct option from the list widget and then apply the selection change trigger configured in the widget, but at the moment it only selects an option from the list widget and thats it. The selection change trigger is configured to filter a layer based of the selection and then show the filtered data in a chart widget.

This works perfectly when you select an option directly from the list widget but it doesn't filter the layer when its called from the URL parameter, for instance like refreshing a page, instead of showing the data based of the selection it shows the sum of all data like the URL parameter is not set.

I'm not sure why this happens, do I need to configure somethink else? or am I doing it the wrong way?

Thanks!

0 Kudos
6 Replies
JeffSilberberg
Frequent Contributor

 

You didn't include the full URL, but based on what you did include, it maybe as simple as using a Question Mark in place of the pound sign. 

"?data_s=id%3AdataSource_1%3A312"

 

0 Kudos
MikolajJaworski
Emerging Contributor

I'm using Experience Builder for Developers so at the moment the URL would be https://localhost:3001/experience/1/?draft=true#data_s=id%3AdataSource_1%3A312

The question mark doesn't work either, based on the docs (https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm#ESRI_SECTION2_27A9...) it should be #

0 Kudos
JeffSilberberg
Frequent Contributor

Not sure, But after seeing the full URL and the Documentation you referenced, the ? mark separating the URL from the Parms is there, but I have to wonder if you need an & after the draft=true value as URL paraters are normally separated by the & character.  

Maybe try 
https://localhost:3001/experience/1/?draft=true&#data_s=id%3AdataSource_1%3A312

 

 

0 Kudos
MikolajJaworski
Emerging Contributor

Nope 😞 adding an & after the draft=true didn't work

0 Kudos
JeffSilberberg
Frequent Contributor

 

Sorry, I can't think of anything else to try.

I would suggest you open a technical support case.

0 Kudos
DanJiang
Esri Contributor

Hi @MikolajJaworski , this is the designed behavior. The selection in URL will only select the correct records and will not trigger any actions. Message action will only be triggered by direct user interaction to avoid action loop and conflict. If you want to apply the filter effect as well, you can try use both select data parameter and the data filter parameter. Please find the doc here for details. 

https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm#ESRI_SECTION1_0A01...

0 Kudos