POST
|
Hi, So I'm trying customize a fields maps form to automatically update an attribute on a feature when a specific attribute on the form gets set to "YES" (via a form switch). The form is on a related table called INSPECTIONS, which is related to my HYDRANTS layer. I want it so when the user sets the switch for CHAINS to be "YES", that the INSP_STATUS field on the HYDRANTS layer gets set to "WR" (for 'Work Required). On my Field Maps inspection form, I have the Arcade code on the CHAINS switch set to this: var allHydrants = FeaturesetByName($datastore, 'Hydrants', ['FACILITYID', 'ObjectID'], false);
var facility_id = $feature.FACILITYKEY; //this should be the ID of the currently selected hydrant
var thisHydrant = First(Filter(allHydrants, 'FACILITYID = @facility_id'));
//If the CHAINS field gets toggled to "YES" in the collection form, then we need to update the INSP_STATUS attribute on the feature to YES
if (($feature.CHAINS != "NO"))
{
//abort if no hydrant was found
if (thisHydrant == null){return};
return {
'edit': [{
'classname' : 'Hydrants',
'updates' : [{
'objectID': thisHydrant.ObjectID,
'attributes' : {'INSP_STATUS' : 'WR'}
}]
}]
};
}; In field maps, all I get in the form is some text (the dictionary) where the switch should be instead of the code actually getting triggered like an event when the switch gets toggled by the user. Is there a way to get what I want to do to work? Either through Field Maps forms or some other way?? I've given WebHooks a try, but no success, but this seems like something that should be fairly simple to do. Right in ArcGIS Pro if I create Attribute Rules on the INSPECTION table this will work, but I have been struggling for years to get Field Maps/Collector to work in a more automated way.
... View more
12-04-2023
11:28 AM
|
1
|
10
|
426
|
POST
|
You need to add a "Group" to the form, which is where you can set the toggle. Then you can add as many attributes into the group as you want.
... View more
11-28-2023
10:17 AM
|
0
|
1
|
328
|
POST
|
Yes, just toggle the switch in the forms designer. Shows up like this initally:
... View more
11-28-2023
09:54 AM
|
0
|
1
|
334
|
POST
|
Sure, It's just a rule to update a field for our Asset Management system Maximo. The code works fine, it's just Field Maps that doesn't seem to like it. Where are the logs for Field Maps?? if ($feature.FACILITYID != $originalfeature.FACILITYID || $feature.CONTRACTNO != $originalfeature.CONTRACTNO || $feature.LIFECYCLESTATUS != $originalfeature.LIFECYCLESTATUS || $feature.OWNERSHIP != $originalfeature.OWNERSHIP || $feature.LOCATIONDESCRIPTION != $originalfeature.LOCATIONDESCRIPTION || $feature.DEPOTAREA != $originalfeature.DEPOTAREA || $feature.WALLMATERIAL != $originalfeature.WALLMATERIAL || $feature.MHDIAMETER != $originalfeature.MHDIAMETER || $feature.SUBTYPECD != $originalfeature.SUBTYPECD) {
return 1
} else {
}
... View more
11-28-2023
08:31 AM
|
0
|
0
|
158
|
POST
|
Hi, I'm trying to edit an attribute on a web service that has an attrbute rule on it. I'm assuming this error in Field Maps is because of some incompatibility with Field Maps? Or is something else going on?? In an AGOL webmap, I am able to make the same edit with no problems.
... View more
11-28-2023
08:03 AM
|
0
|
2
|
221
|
POST
|
We just found this today....so I guess it's already been identified as a bug?? https://support.esri.com/en-us/bug/lasteditdate-does-not-update-with-traditionally-version-bug-000153176
... View more
11-27-2023
11:31 AM
|
0
|
0
|
130
|
POST
|
OK, so it seems like I have found the file I need to update as well as the registry spot I need to update, but for some reason when ArcPro opens it seems to overwrite the registry setting I manually update, back to the 'system default' location. So I enter in this: \\region.durham.local\fileshare\WKSTechsupt-Users\bulla_b\Documents\ArcPro\AppData\Roaming\Esri\ArcGISPro.exe_StrongName_yhpsrysqpn4fvmb0spwbakt5o5e50din\2.9.0.0\user.config and the software seems to automatically revert back to the default settings which are this: Is there a way to stop ArcPro from reverting back to the default settings each time it opens??
... View more
11-20-2023
07:20 AM
|
0
|
0
|
148
|
POST
|
Does anyone know if it's possible to change where ArcPro looks for the user.config file? I'd like to copy my user.config to a centralized location since I run ArcPro from multiple machines, and it would be nice if all my settings carried over between them. So I'd set each machine to look for the user.config stored somewhere on the network....if that makes any sense. Thanks
... View more
11-20-2023
05:12 AM
|
0
|
1
|
220
|
POST
|
I've setup a Make.com account, so just working through the tutorial. Thanks for your help with this!
... View more
11-07-2023
08:11 AM
|
0
|
0
|
316
|
POST
|
Thanks....so for the Authorize URI and the Token URI, where do I find this information?? I am in my developer account, and see the App ID and App Secret, but not sure where to find these URIs.
... View more
11-07-2023
08:10 AM
|
0
|
0
|
59
|
POST
|
Hi....so I'm just working through the webhooks sample in the blog. From what I'm reading, as soon as I enable the Editing tracking on the FeatureService, I should be able to see the "WebHooks" option when viewing the feature services URL.....but I don't see that. Can anyone explain how to get "WebHooks" enabled on the feature service?? I'm going through the tutorial here: https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/use-webhooks-to-automate-workflows-in-arcgis-field-maps/
... View more
11-07-2023
06:04 AM
|
0
|
1
|
321
|
POST
|
Back sometime in the summer some folks from esri did a Webinar on FieldMaps and mentioned how the Attribute Rules functionality was in an upcoming release. They were a little fuzzy on details though like working when disconnected, etc. With the webhooks what sort of issues have you come across? What sort of backend setup do you need for it to work properly? I believe we are still at Enterprise 10.8, and I was hoping to get this to work in our Portal, not AGOL.
... View more
11-07-2023
05:34 AM
|
0
|
2
|
323
|
POST
|
Hi Ken. So with the Arcade code have you added the table separetly to the map as a URL (like you mentieond earlier) or is this using the relationship in the web service??
... View more
11-06-2023
12:45 PM
|
0
|
3
|
333
|
POST
|
Ah....I never though of trying that. Let me give it a go.
... View more
11-06-2023
12:24 PM
|
0
|
0
|
336
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
1 | 12-04-2023 11:28 AM | |
1 | 11-03-2023 05:25 AM | |
1 | 09-28-2023 11:31 AM | |
1 | 08-25-2023 07:59 AM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|