POST
|
Thank you! I didn't know how to add code to the display. Yes I was showing my test of the script so people knew what I had already tried. The dates I expect to see are: clean up, reporting, contact, citation. They all have date fields to pull from. I have been testing it but symbology just wasn't showing. This is my first time trying to use Arcade (any code) to make symbology changes. So the help is very appreciated. Your example lead me to the right place to get it working. This is what I have gotten the script to. It is not pretty but it seems to be working. When(!IsEmpty($feature.clean_up_date),"Removed", //symbol changes to green when date field is not null (closed condition)
!IsEmpty($feature.removal_date),"Tow", //symbol changes to orange when date field is not null
!IsEmpty($feature.reporting_date) && IsEmpty($feature.contact_date) && IsEmpty($feature.citation_date) && IsEmpty($feature.clean_up_date) && DateDiff (Now(), Date ($feature.reporting_date), 'days') >=3, "Over Due- 3 days since Reported", //symbol changes to black/overdue when reporting date is 3 days over and contact, citation, or clean up date fields have no entry
!IsEmpty($feature.contact_date) && IsEmpty($feature.citation_date) && IsEmpty($feature.clean_up_date) && DateDiff (Now(), Date ($feature.contact_date), 'days') >=3, "Over Due- 3 days since Warning", //symbol changes to blue/overdue when contact date is 3 days over and citation or clean up date not entered
!IsEmpty($feature.citation_date) && IsEmpty($feature.clean_up_date) && DateDiff (Now(), Date ($feature.citation_date), 'days') >=3, "Over Due- 3 days since Citation", //symbol changes to Purple/overdue when citation date is 3 days over and clean up date not entered
!IsEmpty($feature.reporting_date) && DateDiff($feature.contact_date, Date ($feature.reporting_date), 'days') <=2, "Contact Made", //symbol changes to yellow/contact made when contact date is under three days from reporting date. Both fields have entry
"Open")//symbol changes to red/open when all other conditions are not meet
... View more
11-06-2023
10:39 AM
|
0
|
0
|
459
|
POST
|
I am making a parking violation reporting map for code enforment. The need to see what points are open, closed, have had contact or are overdue. I am using Arcade for symbology based on date fields. I can get some but not all the symbology to work. I have limited coding experience and have already spent over 4 hours on this. I have attached my code document with my notes on what is working Symbology I need to change on its own as the date changes within fields and also on calendar. 😀 are what I have working. 😀Open: ( Reporting date is not null) 😀Removed: (Clean up date is not null) 😀Contact Made 1: (Reporting date is not null and Contact date is not null and does not exceed 2 days from reporting date) 😀Contact Made 2: ( Contact date is not null and Citation date is not null does not exceed 2 days from Contact date) Over Due 1: three days have passed since reporting and no other dates have been filled Over Due 2: three days have passed since Contact date and no other dates have been filled Over Due 3: three days have passed since citation and no other dates have been filled 😀Over Due 4: Contact date is filled three days after report date filled 😀Over Due 5: Citation date filled three days after Contact date filled Towing: if there has been no date fill over 24 hrs from citation day
... View more
11-03-2023
02:11 PM
|
0
|
2
|
518
|
POST
|
The goal: to export an csv/excel list of parcel attributes within a select distance of a singular parcel boundary. The less steps/credits to get to output the better. I am trying to make in web app builder ( I just seem to fight experience builder and am trying to get this done before we renew licenses) a simple map where one of our planning people can export a csv/excel list of the parcels within 250 to 500 ft of a singular parcel. They will need to be able to chose a new singular parcel and be able to change the distance as needed. This work has previously been done by them on desktop by creating a buffer around a newly exported layer of the singular parcel than selecting the parcels within the buffer. I us the select location tool in pro to facilitate this which is very easy. We are trying to now do this on AGOL if possible. What I tried: I was able to easily make a query (widget) that allowed me to select a singular parcel than find all the parcels within the distance and export that to the csv. No credits very simple. But the issue is the distance need to be based on the parcel boundary whereas the widget just does it from wherever you set down the point and makes a radius search. So had to throw that out. Analysis (widget) tries: 1) Buffer does everything in the layer. The steps I have taken was to use select (widget) to choose singular parcel than export it to a new layer (credit used) than make a buffer around parcel (credit used) but the end result is two new layers and no way to use it to select what is in the buffer area and export it. So that is out. 2) Derive New location. The steps I have taken was to use select (widget) to choose singular parcel than export it to a new layer (credit used) than Derive New location (credit used) which than makes a layer which can be exported to a to a csv by downloading it. I feel this will end up leaving with this user to many files that will than need to be deleted. Also license level for exporting these files and user patience is a question. So this is out. 3) I ran through a number of other likely tools but no luck. Is there anyway to just do something similar to the query approach but make it go from the polygon area instead of the point radius? If their isn't I will return to training the user on Pro from Desktop and abandon doing this on AGOL. Thank you for your time.
... View more
12-14-2022
03:49 PM
|
0
|
0
|
417
|
POST
|
Thank you I was able to get it to work just running it in a notebook.
... View more
11-01-2022
03:43 PM
|
0
|
0
|
912
|
POST
|
Hi all. I am not good at python at all. I have tried using other codes I found but am having no luck. I am just not good enough to see what I need to change. I used the batch export attachment rules and created the tool to export out the images but I need to have the images labeled with the asset_number from the layer so we don't have to go through and label each one individually. I have GlobalID that create the relation between the tables but need the asset_number from the layer to be the actual image file name. Any ideas? I am working in pro 3.0
... View more
11-01-2022
12:43 PM
|
0
|
7
|
939
|
POST
|
Thank you. I would not have figured that out with my current Arcade coding knowledge.
... View more
06-02-2022
08:28 AM
|
0
|
0
|
952
|
POST
|
Hi all I am new to arcade and have mostly only used it in field map forms and labels. I need to hide a field in the pop up based on the attributes of a separate field. The project is our adopt a street program. The user wants the link to adopt a street hidden if the street is already adopted or pending adoption. They also want the adopted group name field to be hidden if the street is available. I saw methods to hide a field based on conditions related to the same field but I did not find a method to hide a separate field based on another fields attributes. Link to web app we are using the web app to embed the map in the adopt a street website. What I am looking for: If ($feature, "street_adoption_status") != "Available" than $feature["Link_Txt"] is not visible in pop up If ($feature, "street_adoption_status") == "Adopted" than $feature["group_name"] is visible in pop-up Any help is appreciated. Thank you for your time.
... View more
06-01-2022
09:41 AM
|
0
|
4
|
1010
|
POST
|
I have a layer covering all our storm water pipes and would like to attach PDF files that relate to these storm water pipes to each individual asset. The pipes each have their own unique asset id. Each file will be named the same as the each storm water pipe they are associated with by the asset id. Is it possible using the unique asset id to connect the files from their folders within a drive to the storm water pipe assets? I have very little python 3 or arcade coding experience. Just enough to do some analysis and make things look nice. I am thinking it will work with a related table but am unsure. I am looking at about 20k files that need to be attached to about 10k assets. Any help, advice, links is appreciated. Thank you for your time.
... View more
05-25-2022
04:02 PM
|
0
|
1
|
407
|
POST
|
Unfortunately I can't share the web map or layers publically. I could share by allowing Esri to remote in through a service ticket. Otherwise: form was created in field-map dashboard to be used with field maps on Samsung tablets using android. Have no issues there. Our AGOl none Enterprise and we have converted over to the new map viewer with no issues except the form not matching when editing. I coded all the expressions in the form in arcade. Layer form is using was created in arcpro and then pushed to AGOL where domains where added.
... View more
03-24-2022
12:52 PM
|
0
|
0
|
598
|
POST
|
Hi All, I have created a layer for collecting illicit discharge points for our storm water infrastructure. In field maps application I created a form with a number of questions that have arcade expression conditions to them. Such as does the inspection need follow up: yes/no if the answer is yes a series of further questions open up. It works great in field maps. But I do not see this same conditional question tree working in map viewer (we are using new one not classic). This is causing issues because some of these conditional questions are marked as required only if they are opened but otherwise they aren't needed. But in map viewer this is messing up submitting points due to things being required that are not needed. For now I have taken off requirements and am encouraging people to work off field maps instead of map viewer. It is very frustrating to take the time to build these forms and them not work across to map viewer. If there something I am missing or does map viewer just not support the forms for field maps right now?
... View more
03-24-2022
11:05 AM
|
1
|
3
|
635
|
POST
|
Thank you 🙂 I was able to get around limitations (my not great arcade coding skills) and deliver what user wanted.
... View more
01-05-2022
01:36 PM
|
1
|
0
|
962
|
POST
|
I will give it a try and see if that covers all the user wants. Thank you.
... View more
01-05-2022
08:07 AM
|
1
|
0
|
983
|
POST
|
conditionally displayed. If the warning is displayed at the current moment they do not have to do additional fields or work. Good to know there is no support for just text in field maps. I guess that is just a survey 123 thing. Thank you for your help. I will go back to user for redesign.
... View more
01-04-2022
08:57 AM
|
0
|
1
|
1003
|
POST
|
The user would like to have reference points for sampling and it was determined that field maps would be the best use for this project. Otherwise I would have used Survey 123 because it can do these warnings. Thank you for your help.
... View more
01-04-2022
08:54 AM
|
0
|
3
|
1003
|
Title | Kudos | Posted |
---|---|---|
1 | 03-24-2022 11:05 AM | |
1 | 01-05-2022 08:07 AM | |
1 | 01-05-2022 01:36 PM | |
1 | 09-03-2021 12:26 PM | |
1 | 12-30-2019 10:05 AM |
Online Status |
Offline
|
Date Last Visited |
03-01-2024
09:26 PM
|