Passing Query Widget Output as URL Parameter

526
6
09-15-2022 08:34 AM
JaredCleghorn1
New Contributor II

Is it possible to pass a Query Widget output as a URL parameter? When I try, the page begins to load with the parameter as part of the URL, but then removes the parameter and loads the default page.

Example:

This:

https://experience.arcgis.com/experience/ad6e0b92d98e4ced94e17c6aec25bda4/?data_id=widget_33_output_44548751669035913%3A8 

Defaults to this:

https://experience.arcgis.com/experience/ad6e0b92d98e4ced94e17c6aec25bda4

0 Kudos
6 Replies
TianWen
Esri Contributor

The sample app is not accessible. Could you check the sharing setting and then we'll take a look? Thanks!

0 Kudos
JaredCleghorn1
New Contributor II

It is shared now. Thank you. Try querying a  PIN like 130520.00. You will see when you select the query result it passes the parameter to the URL, but if you try to load that URL in a new window, it reverts back to the default URL.

0 Kudos
TianWen
Esri Contributor

The case is not currently supported. For Query widget, you may need to apply it to get the output, otherwise, the "selection" parameter in the URL will be removed.

0 Kudos
JaredCleghorn1
New Contributor II

What do you mean by "apply it"?

0 Kudos
TianWen
Esri Contributor

That means triggering the apply button.

0 Kudos
JaredCleghorn1
New Contributor II

I want to send a URL to another user with the query result as a URL parameter. It seems that this is not possible. I don't think apply button has anything to do with it. I can apply on my side and the URL shows the query output. If I copy that URL and send to someone else (or open a new window), the page does not load the query. I decided to go another route since this does not seem possible. Thank you for your help.

0 Kudos