Select to view content in your preferred language

Syntax to combine filter and select URL parameters

201
4
07-09-2024 05:56 AM
BradLewis14
New Contributor II

Hello - I am trying to invoke a URL using both data_filter and data_s (filter and select) parameters. Each will work alone, but I cannot get both to work in the same URL string:

"https://experience.arcgis.com/experience/<appid>/#data_s=where:dataSource_1-0:Code%3D391267&data_filter=dataSource_1-0:OrgID%3D8000"

I cannot use filtered views because the parameters will by dynamic and the URL will be passed from an external application. Is it possible to combine both filter and select?

0 Kudos
4 Replies
JeffreyThompson2
MVP Regular Contributor

Try replacing your hashtag # with a question mark ?

https://experience.arcgis.com/experience/<appid>/?data_s=where:dataSource_1-0:Code%3D391267&data_filter=dataSource_1-0:OrgID%3D8000

GIS Developer
City of Arlington, Texas
0 Kudos
BradLewis14
New Contributor II

Thanks for the suggestion. Unfortunately, same result. The documentation specifies that data_s must be followed by a hashtag:

To select data records, use the data_s parameter, which follows a hashmark (#)

0 Kudos
JeffreyThompson2
MVP Regular Contributor

https://experience.arcgis.com/experience/<appid>/?data_filter=dataSource_1-0:OrgID%3D8000#data_s=where:dataSource_1-0:Code%3D391267

What happens if you switch the order?

GIS Developer
City of Arlington, Texas
0 Kudos
BradLewis14
New Contributor II

Thank you - that worked! Which makes sense - filter first, select from filtered. I had tried re-ordering before but was using a "&" for the data_s parameter as I would for most multi-parameter URL strings, but the "#" is required. 

0 Kudos