Various Scripts

Sometimes you write code and you have no clue what it’s supposed to do ; )

if (IsEmpty(Geometry($feature))){
return;
}
else{
var parcels_FS = Intersects($feature, FeatureSetByName($map,”Parcel2023testing”));
if (Count(parcels_FS) == 1){
return Text(First(parcels_FS).ROLL);
}
}

https://bigbluemarble.ca/wp-content/uploads/2023/03/assessment.png

var convass_old = Number(datapoint.avg_OLD_ASSESSMENT)
return convass_old
Code to convert assessment information. String to number?
var assessmentinfo = FeatureSetByName($map,’Assessment 2023′, [‘*’], true)
‘2023’ + ‘ $’ +A string calculation for use in Arcade.
var percentval = (valuediff/$feature.OLD_ASSESSMENT)*100
return Round(percentval,2)
How to calculate the percentage change between two values, in this case assessment year.
var valuediff = $feature.NEW_ASSESSMENT – $feature.OLD_ASSESSMENTCalculates the value difference (valuediff) between the current assessment and the previous year.

The format is a standard HTML iframe with URL content. For example,

https://bigbluemarble.ca/wp-admin/%E2%80%9D

https://www.arcgis.com/apps/dashboards/bda7594740fd40299423467b48e9ecf6%E2%80%B3/

Survey 123 – Format for the URL creation to link from a Map Viewer tool (by extension Field Maps) to Survey 123 and auto-populate fields

S123 Link for demo
https://lsacatlas.maps.arcgis.com/home/item.html?id=ea10d40ff3f441f69cd8446975aa83a3

arcgis-survey123://?itemid=ea10d40ff3f441f69cd8446975aa83a3&field:GUID={GlobalID}&field:Roll={ROLL}&field:Name1={NAME}&field:Addr1={ADDRESS1}
&field:City1={CITY}&field:Postal1={POSTALCODE]&field:Prov1={PROVINCE}

https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm