|
POST
|
I haven't, but I'm not running on Portal, so I don't know what bumps that adds.
... View more
10-18-2023
08:16 AM
|
0
|
0
|
944
|
|
POST
|
I've used that to count related records in a popup on AGOL and it works as expected.
... View more
10-18-2023
07:51 AM
|
0
|
0
|
4269
|
|
POST
|
I used the same syntax to test on a sample dataset and it worked as expected. Can you edit individual records?
... View more
10-18-2023
07:30 AM
|
0
|
0
|
1240
|
|
POST
|
Your code should look like this, removing the target variable: var source = $feature["user_business_unit"]
When(
source == 'ACOFD', 'Fire',
source == 'ALCSO', 'Sheriff',
...
source == 'ZONE7', 'Zone 7',
source)
... View more
10-17-2023
12:51 PM
|
0
|
3
|
1263
|
|
POST
|
You are instantiating links as an array (line 6) but are using it as a string. Try this if ($feature.CLOSURE_MAP != ''){
if ($feature.Map_URL != '') {
var urls = Split($feature.Map_URL, ', ')
var links;
for (var i in urls) {
var url = urls[i]
links += Concatenate(["<a href=", url, ">View Map</a>"])
links += ""
}
return {
type : 'text',
text : links
}
}
}
... View more
10-17-2023
12:33 PM
|
1
|
0
|
1582
|
|
POST
|
You can start testing if the script is crashing on a specific line. Uncomment the return statements one by one to see if it makes it to that point. //return "Start"
var related = FeatureSetByRelationshipName($feature, "GISWRKS1.WORKS.INSPECTIONS_Valve_Inspection");
//return "Relate worked"
var output = `${count(related)} Previous Inspection`;
if (count(related) != 1) output += "s";
//return "Starting loop"
for (var rec in related) {
output += `${TextFormatting.NewLine}• ${Text(rec.INSP_DATE, 'DD/MM/YYYY')}`
}
return output
... View more
10-17-2023
12:08 PM
|
0
|
0
|
4298
|
|
POST
|
If you're using a Text element, use "return output" instead of returning the dictionary. When you click the Run button to test the script in the editor, it should use the first record in your table. You can check that by examining the feature's ID in the console (click on Messages after running the script). console($feature.OBJECTID) Does the popup work if you click on that first record on your map?
... View more
10-17-2023
11:17 AM
|
0
|
0
|
4302
|
|
POST
|
What version is your Portal? The Popup element was added in Arcade v1.16, which is available in Portal 11.0. However, you don't need that as the Text element should be able to show your code properly. Is there a chance you're using another attribute expression in your text element instead of the RelatedExpressions expression?
... View more
10-17-2023
10:46 AM
|
0
|
0
|
4306
|
|
POST
|
There is something strange happening with your data. When I click on the stream bed between the houses, it does show as a long thin A-1 zone. zone.png However, if I load the Zoning service layer into ArcGIS Pro, I don't see that same polygon zone1.png I also notice some oddities in the zoning polygons in the area bounded by S Vermont, W 214, W Carson, and I-110. The online map is highlighting different zoning polygons than what shows. You can see an A-1 polygon in the top image that doesn't appear in Pro
... View more
10-17-2023
10:10 AM
|
0
|
1
|
3329
|
|
POST
|
If you click outside the parcel, you're not going to get the results for parcel 7345003005, but for another parcel. If you click the arrow at the top of the popup to show the Parcel Boundary information, which parcel does it show? One other thing to be aware of is that if you click very close to the border between two parcels, you'll probably get back results from both parcels. This is due to the click tolerance in AGOL, which will return all features within a certain radius of where you clicked. While this is good for returning results for point and line features, since you don't have to be exactly over the feature, it may return more results than you want for polygon features.
... View more
10-17-2023
08:26 AM
|
0
|
3
|
3348
|
|
POST
|
You can add in datasets not in the view by dragging them from the catalog or clicking the Browse icon
... View more
10-17-2023
05:37 AM
|
0
|
0
|
1782
|
|
POST
|
I don't see that happening when I select Batch on the Clip tool (also on 3.1.3)
... View more
10-16-2023
02:17 PM
|
0
|
2
|
1799
|
|
IDEA
|
If you want to change the number of decimal places displayed for a field, open the Fields dialog and click on the field you'd like to modify. Select the number of significant digits you want to show. digits.png
... View more
10-16-2023
01:54 PM
|
0
|
0
|
911
|
|
POST
|
You can add that to the popup title in the Configuration dialog. layer.png
... View more
10-16-2023
12:20 PM
|
0
|
0
|
1167
|
|
POST
|
Have you enabled Editing for the layer? This is found on the item's Settings page, under "Feature layer (hosted)". edit.png
... View more
10-13-2023
09:27 AM
|
0
|
0
|
1926
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 2 weeks ago | |
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|