|
POST
|
Actually I just discovered the problem. I needed to change the references from StructureJunctionsCopy to StructureJunction in the script. Now it works!
... View more
|
1
|
0
|
97
|
|
POST
|
I have two related standalone tables for Utility Network (v7) power pole and underground asset inspection forms in Field Maps. What I'm trying to accomplish is change the symbology and labelling for a pole (in StructureJunction data) when an inspection form is submitted on the related table for that asset ID. With my Arcade expression, the rule works like a charm in Pro on a local copy of the UN data and tables. After publishing to the Portal (11.3), the attribute rule doesn't work. AI is telling me that cross-feature editing might not be possible in Field Maps. Anyone doing anything similar? I've had crews on multiple different projects ask for this sort of symbology change in the map so they know what they've inspected, what needs servicing, etc. It seems like this should be possible?? Here is my Arcade script // Assign to inspectdate field
var inspectionAssetID = $feature.assetid;
var inspectDate = $feature.inspectdate;
if (IsEmpty(inspectDate)) {
inspectDate = Now();
}
if (IsEmpty(inspectionAssetID)) {
return inspectDate;
}
var structureFS = FeatureSetByName($datastore, "StructureJunctionsCopy", ["assetid", "globalid"]);
var matchingStructure = First(Filter(structureFS, "assetid = @inspectionAssetID"));
if (matchingStructure == null) {
return inspectDate;
}
var hasNeedsCorrection = false;
var hasCorrected = false;
var fields = [
$feature.polemissing, $feature.poleonmap, $feature.poleground,
$feature.groundrod, $feature.riserground, $feature.spacing,
$feature.ugriser, $feature.guysanchors, $feature.guyguards,
$feature.treesecondary, $feature.treeprimary, $feature.climbspace,
$feature.polecondition, $feature.armcondition, $feature.infrared,
$feature.switchcondition, $feature.drilltest, $feature.other,
$feature.powercommpole, $feature.powercommmid, $feature.powercommpoa,
$feature.powerroof, $feature.powerroad, $feature.powerdriveway,
$feature.powernearwind
];
for (var i in fields) {
var val = fields[i];
if (!IsEmpty(val)) {
// Convert to number to handle any type issues
var numVal = Number(val);
if (numVal == 1) {
hasNeedsCorrection = true;
}
else if (numVal == 2) {
hasCorrected = true;
}
}
}
var surveyedStatus;
if (hasNeedsCorrection) {
surveyedStatus = 2;
}
else if (hasCorrected) {
surveyedStatus = 3;
}
else {
surveyedStatus = 1;
}
return {
'result': inspectDate,
'edit': [{
'className': 'StructureJunctionsCopy',
'updates': [{
'globalid': matchingStructure.globalid,
'attributes': {
'surveyed': surveyedStatus,
'inspectiondate': inspectDate
}
}]
}]
};
... View more
|
0
|
1
|
145
|
|
POST
|
So I'm trying to create attribute rules for Branch Versioned Utility Network Data. I have a Structure Junctions dataset with two related standalone tables for Power Pole and related assets inspections. I'm trying to create rules that change the symbology of the SJ feature data based on whether a report has been submitted for that asset in Field Maps. I cannot test these without publishing the entire UN network to the Portal. Everything on the sde is locked in Pro. I'm unable to troubleshoot if a rule doesn't work in Field Maps, there are no errors, it just doesn't work. I tried bringing the published Portal data back into Pro, but I wasn't able to do anything with that either. Does anyone have any advice on how I can test these attribute rules BEFORE I publish??
... View more
a week ago
|
0
|
0
|
129
|
|
IDEA
|
How is this still not implemented six years later?? We have a client who does all their work in AGOL/Field Maps, and they need incrementing IDs on their layers.
... View more
09-10-2025
08:57 AM
|
0
|
0
|
481
|
|
POST
|
Hello, I'm having trouble making this work on a constraint rule. I've tested the sample data from that blog post in my workspace so I know that does work. Here's the arcade I'm working with: //Start AR Check
//add a row in the aroptions table and set 1 or 0 to enable or disable the rules
var option = first(featuresetbyname($datastore, "Attribute_Rule_Options"))
if (option != null) if (option.EnableConstraintRules == 0) return true;
//End AR Check
if (!IsEmpty($feature.assetid) && !Equals($feature.assetid, $originalFeature.assetid)) {
return false; // Prevent the update
} else if (IsEmpty($feature.assetid)){
return false;
}
else {
return true; // Allow the update
}
... View more
06-11-2025
10:35 AM
|
0
|
1
|
287
|
|
BLOG
|
Hello, I'm having trouble making this work on a constraint rule. I've tested your sample in my workspace so I know it does work. Here's the arcade I'm working with //Start AR Check
//add a row in the aroptions table and set 1 or 0 to enable or disable the rules
var option = first(featuresetbyname($datastore, "Attribute_Rule_Options"))
if (option != null) if (option.EnableConstraintRules == 0) return true;
//End AR Check
if (!IsEmpty($feature.assetid) && !Equals($feature.assetid, $originalFeature.assetid)) {
return false; // Prevent the update
} else if (IsEmpty($feature.assetid)){
return false;
}
else {
return true; // Allow the update
}
... View more
06-11-2025
08:31 AM
|
0
|
0
|
327
|
|
POST
|
Is anyone accomplishing something similar to this with a single survey in a single flow?
... View more
06-11-2025
07:53 AM
|
0
|
0
|
626
|
|
POST
|
I favorited them and they showed up in fetch changes. But I'm not sure how I would use that. Here's how my flow looks. It actually works the first time, but it takes forever for the final email to go through. And that's me filling out and editing the survey immediately after receiving the first email. So it seems like to do need to reset something, I'm just not sure how to go about it. The two S123 connectors are identical with the same global ID. What I really need to figure out is how to kick off the last email when the survey_mode has changed from "new" to "edit"
... View more
06-10-2025
11:48 AM
|
0
|
0
|
669
|
|
POST
|
Ah thanks. I can only use the S123 connectors because my hosted survey layers don't show up in any of the ArcGIS connectors.
... View more
06-10-2025
09:10 AM
|
0
|
2
|
678
|
|
POST
|
Would you mind sharing a little more about how you implement this?
... View more
06-10-2025
08:13 AM
|
0
|
0
|
693
|
|
POST
|
Thanks! I will try this. The editing will be happening exclusively in S123. The manager will be getting an URL link to the submitted survey which they will edit.
... View more
06-09-2025
02:32 PM
|
0
|
4
|
746
|
|
POST
|
I have a public survey that is filled out for a rental fee waiver. There are hidden fields that a manager will fill out to approve or deny this request. This step is locked down to a managers group on AGOL. So far I have a PA flow that emails the filled out survey to the manager, and the hidden fields are exposed and editable. I'm trying to figure out how to resend the survey after it's been edited by the manager to the rental department. Can I do this in a single flow? Maybe a second "When a survey is submitted" trigger? I'm thinking the survey global ID doesn't change with editing though. Is anyone doing something like this?
... View more
06-09-2025
02:07 PM
|
0
|
8
|
775
|
|
POST
|
I have to add two of the same Enterprise 11.3 connections and toggle between them to be able to see any of my services in the trigger dropdowns. To get around the OP’s issue, I also made a flow with a single ArcGIS trigger that runs once a week to keep the connections refreshed. I was told to do this at Dev Summit. It would be nice if ESRI would either fix this with Microsoft or let everyone know about this simple workaround to keep persistent connections.
... View more
06-06-2025
08:55 AM
|
0
|
1
|
974
|
|
POST
|
I'm creating an attribute rule for a symbology label field to change when an asset type field is changed. I'm wondering if it's possible to store the original value and then revert to it if someone decides it's incorrect? I've tried storing the OG value as a variable and then returning that at the end of an IIF or When statement. Here's what I've tried so far and it's not working: var original_symbol = $originalFeature.symbol
if($feature.ASSETTYPE == 'Drop Manhole'){
return 'MANHOLE_DRP';
} else {
return original_symbol;
}
... View more
06-05-2025
01:32 PM
|
0
|
1
|
283
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Monday | |
| 1 | 09-13-2024 10:43 AM | |
| 1 | 06-05-2025 01:26 PM | |
| 3 | 04-04-2025 10:54 AM | |
| 3 | 04-15-2025 12:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|