|
POST
|
The FeatureSetByName function is your friend for getting data from other feature classes. As for updating another feature class from your rule, this help page explains the structure of the special object you have to return.
... View more
06-10-2025
08:36 AM
|
0
|
0
|
407
|
|
POST
|
If there's no GPS metadata fields or editor tracking fields then you're out of luck for properly attributed data. If you're fine with fudging the data, you can try and get a start time and the streaming interval, then use the field calculator to auto-increment the data to create "good enough" timestamps.
... View more
06-05-2025
04:03 PM
|
0
|
0
|
354
|
|
POST
|
A few suggestions: Add some transparency to the symbols so you can see overlaps and get accurate counts Use symbols that are offset from the center, like those pushpins you suggested or a crescent moon or something. This makes it easier to see overlaps while keeping a natural appearance Play around with Clustering. This isn't a magic bullet as it can cause issues with some apps and the special aggregate popups but it's a surefire way to avoid overlaps.
... View more
06-05-2025
03:58 PM
|
0
|
0
|
471
|
|
POST
|
If you need to store the original data between edits, you'll need an extra field to log that with one rule, then use another rule to retrieve it later. If it's all happening in the span of the same edit, you can usually just return without a value and the attribute rule won't edit anything.
... View more
06-05-2025
02:36 PM
|
0
|
0
|
301
|
|
POST
|
I hopped in the Arcade playground and used this modified code: // Fetches features from a public portal item
var evtsummary = FeatureSetByPortalItem(
Portal("https://www.arcgis.com"),
// portal item id
"6200db0b80de4341ae8ee2b62d606e67",
0, // layer id
["*"], // fields to include
false // include or exclude geometry
);
var sql = "OBJECTID < 10"
var related_data = Filter(evtsummary, sql);
var cnt = Count(related_data);
var evtlist = []
Console(cnt)
if (cnt > 0) {
for (var feat in related_data){
Console(Text(feat))
Push(evtlist,feat.BUILDINGID)
}
return Concatenate(evtlist,"\n")
} else {
return "-"
} and I was unable to replicate your issue. What's your SQL query? If you apply the same query to the table directly in Pro or the map viewer do you get distinct rows back? If that leads nowhere, you might be pulling evtsummary in an odd way that leads to duplicates. If you can't get anywhere you might have to contact your support to see if they can replicate this with your data and Enterprise/Pro versions.
... View more
06-05-2025
12:36 PM
|
1
|
1
|
1142
|
|
POST
|
If it's a preset list of colors, make a feature service with a choice list field that's also the symbology field, and throw that in a web map (add Experience Builder on top if you want). If they need to define their own colors on the fly, take a look at attribute-driven color: this page should cover the basics and link to more details.
... View more
06-05-2025
11:18 AM
|
1
|
2
|
606
|
|
POST
|
Does declaring @next_oid as "int" rather than "bigint" change anything?
... View more
06-05-2025
08:58 AM
|
0
|
1
|
806
|
|
POST
|
There may be ways to do this using the Javascript SDK and a few lines of code, but if you want an apples-to-apples comparison of the embed links in maps then you have to use a public map. Are you able to create some dummy layers with nonsense data/fields and then add that to your test map? Or maybe add some world atlas layers if you need a high-level appraisal of the embedded map.
... View more
06-05-2025
08:28 AM
|
1
|
0
|
454
|
|
POST
|
A few ways to do this, each with their own compromises: Add multiple attachment fields and populate as many as you need. This is a bad data design practice because you now have a maximum attachment limit, and any feature without that maximum has a bunch of null data, but it can be a practical solution. Create a table of attachment links and define a one to many relationship class from the art points to the attachment records. The main limit here is configuring your pop-ups to load in the photos in a user-friendly way regardless of how many there are, I'm stuck on Enterprise 11.1 so maybe someone else will come in with some pointers. Use the standard ArcGIS attachment format on your feature class and load the photos in there. This has the best compatibility with web maps but it means a copy of your source data has to sit in a special database table.
... View more
05-29-2025
04:58 PM
|
0
|
1
|
1322
|
|
POST
|
I tried replicating this with the default "Point Notes" layer template and the following code but what I get is the expected behaviour: nulls pass but empty strings fail with arcpy.da.UpdateCursor('Point Notes', "Name") as cur:
for row in cur:
if row[0] is None and row[0] != "":
print(f"[{row[0]}] passed")
else:
print(f"[{row[0]}] failed")
>>>[None] passed
>>>[] failed As you'd expect, it doesn't matter what the right hand expression is or what data's in the field, because the None check fails and stops the condition outright. All I can suggest is taking a closer look at your data or how that field index dict is constructed, I can't figure out why this is happening from the context provided.
... View more
05-29-2025
08:51 AM
|
1
|
0
|
3117
|
|
POST
|
After standing up some test data and playing around with the rules I was able to replicate that error, and this is what I came up with for a solution: var intersecting = Intersects(FilterBySubtypeCode(FeatureSetByName($datastore, "WaterLine", ["DIAMETER"], true), 2), $feature);
if (Count(intersecting) == 0) return false
return First(intersecting).DIAMETER == $feature.FITTING_SIZE This adds a "Count" check after the intersection and fails the rule if the feature isn't intersecting any lines. I assume the rule checker was feeding a null into the First which caused that error to pop-up. Wish the error message was better here but either way, that Count check seems to have fixed it. Note that this will fail if you move a fitting off a line, if that's too strict you can change line 2 to return true instead.
... View more
05-28-2025
02:19 PM
|
0
|
1
|
960
|
|
POST
|
Almost there, we just need to extract the attribute value from the feature returned by First: var sLineDiam = First(Intersects(FilterBySubtypeCode(FeatureSetByName($datastore, "WaterLine", ["DIAMETER"], true), 2), $feature));
return sLineDiam["DIAMETER"] == $feature.FITTING_SIZE Just like JavaScript (and many other programming languages) the "==" operator compares both sides and returns true if they're equivalent or false otherwise. This means you can skip the if/else block as we're returning true/false directly. If you still get errors, check to see if a Select by Location between the two feature classes works as intended in Pro, you might have features that appear to be coincident but actually aren't.
... View more
05-28-2025
01:31 PM
|
0
|
3
|
975
|
|
POST
|
Comparing 3.5 to 3.4 in detail, I don't see any new restrictions, there's just more clarifications for why you can't run the tool on EGDB or Feature Dataset classes (as well as workarounds). @AustinStreetman if you try to define projections for some troublesome data using just the tool interface (no arcpy) do you get a better error message?
... View more
05-28-2025
12:45 PM
|
0
|
1
|
1624
|
|
POST
|
The result of Intersects is a feature set of all intersecting features, if you know there's only 1 intersecting feature you can use the First function to quickly grab a feature. You also have to grab a field from the feature for the comparison, and I think passing false for the geometry parameter in FeatureSetByName will cause problems. Therefore: var tap = First(Intersects(FilterBySubtypeCode(FeatureSetByName($datastore, "WaterLine", ["DIAMETER"], true), 2), $feature));
return tap.tapSize == $feature.FITTING_SIZE I haven't tested this but it should get you going in the right direction.
... View more
05-28-2025
12:36 PM
|
0
|
5
|
986
|
|
IDEA
|
Handling date field out of the box would be great, but if not his is another good use case for this other idea for Arcade expressions in the map series options. Right now the workaround is to calculate some fields and use those to drive the map series, which is a pain to maintain if you're constantly tweaking or rerendering a layout.
... View more
05-23-2025
12:15 PM
|
0
|
0
|
3820
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | Thursday | |
| 1 | Wednesday | |
| 1 | 2 weeks ago | |
| 1 | a week ago |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|