Select to view content in your preferred language

How can I filter by date using dynamic choice list using search appearance?

768
2
01-10-2023 07:55 AM
Vaneiri_Patt
Emerging Contributor

I am trying to achieve 2 things:

1. I am using the dynamic choice list using search appearance to an existing feature service. I have set it up to show all Locations, but I would want to refine to show locations for a specific date to onwards (for example: 1/1/2023 onwards). 

2. To pull data from same feature service based on SO# selected.

2023-01-10_08-51-12.png

0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @Vaneiri_Patt

Unfortunately there isn't a greater than search type parameter the closest that can be done would be to use the contains search parameter, specify the date field in the feature service, then enter 2023 in the search text. 

Thank you,
Zach
JJ_Reyes
Frequent Contributor

You can use query parameters to filter your feature service on date.

In my case I used 

url=https://<my_service>/<mylayer_index_number>?where=my_field>CURRENT_DATE

Explore the REST API query syntax. Here's an article that might help.

0 Kudos