Solved! Go to Solution.
I'd like to resurrect this post. because this is a great question that many people may ask when they use collector:
after 2 years since the original post, I believe there's a great open source tool available for us:
You can see the JSON data of your web map, and you can change the layer definition and save back.
In the layer definition, define your own expression and save.
"definitionExpression": "CreationDate >=DATEADD(day,-1,convert(date,GETDATE()))"
USING THIS TOOL WITH CARE AND AT YOUR OWN RISK, AS IT COULD CORRUPT YOUR CONTENT. so I strongly suggest make a copy before you change anything using ago-assistant.
We are working on better drawing of date fields in the context of "smart mapping". So we want to use different symbols to represent different features both categorically and continuously. For example, draw features based on the day of the week they occurred, or time of day, or even season of the year. Similarly, be able to fade out features of older dates. We are actively working on this and I can see it getting released next year. I'm not sure at this point how it will impact actually filtering data, if we'll be able to filter by the same relative means.
Thank you, that was super helpful!
I wanted to restrict closure and completion dates to current and beyond and inserted this code into the layer description :"ClosureDate >= CURRENT_DATE() OR CompletionDate >= CURRENT_DATE()"
I am currently creating offline maps with the new Collector for ArcGIS. Similar to the original post, we don't want features collected the day before to show up in the Collector map. Currently in the AGOL webmap, I have a filter to not show features in the last 8 hours which works in the webmap. We haven't figured out what works for the offline map and collecting data to not see data collected.
What is the best workflow so surveyors will be able to collect data with no features in the map. Currently I'm recreating the offline map with that filter on the feature layers so there are no features in the offline map area.
A surveyor downloads this offline map area -> collects and syncs features with AGOL -> will the features be gone from the offline map on their device or will they need to again download that offline map area at the start of each day.
Thanks in advance!,