POST
|
I think if you create an arcade expression to autopopulate both the Inspector field and the Date field, it will NOT carry over those two field, and the rest will just copy over as per usual. In my limited testing, this is what I am seeing....the date is definitely updating, and I'm pretty sure the Inspector would be too, but all of these records have my name for all my test data, so can't say for sure. In Arcade use "return Now()" for the date. For the Inspector Name there are a few options, but if you just want their logged in username something like this will work, using whatever the layer name you are using in your app. GetUser(FeatureSetByName($datastore, 'Hydrants')).username;
... View more
12-04-2023
12:46 PM
|
0
|
1
|
443
|
POST
|
For the date, just create an Arcade expression. One line is all you need: return Now() This will return the date/time in whatever format you have the field setup for, but it will populate as soon as the user opens the form. They can always just tap in and make any changes needed.
... View more
12-04-2023
12:23 PM
|
0
|
1
|
1112
|
POST
|
See this post for a possible solution: https://community.esri.com/t5/arcgis-field-maps-questions/quot-failed-to-calculate-quot-error-on-getuser/m-p/1356023#M7482
... View more
12-04-2023
12:18 PM
|
0
|
1
|
1253
|
POST
|
I just tried this and it works no problem for me. I set it in my Field Maps Form through the "Templates" tab....as it says, "Default values can be set on the Templates tab". Where you have it set to 1.8 above, I have it blank.....I only have it set through the Templates tab.
... View more
12-04-2023
12:14 PM
|
0
|
0
|
415
|
POST
|
It seems like the only way to get rid of that is to adjust what kind of editing is applicable to the layers in the map. If even one of them has "Add" editing, then you will see the + sign. If all they need to do is "Update" and/or "Delete", just uncheck the "Add" editing from the service and the + sign will go away.....but you need to do this for ALL layers that are editable in the web map.
... View more
12-04-2023
11:43 AM
|
0
|
0
|
772
|
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
|
1257
|
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
|
1030
|
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
|
1036
|
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
|
414
|
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
|
477
|
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
|
385
|
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
|
619
|
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
|
2
|
691
|
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
|
1025
|
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
|
182
|
Title | Kudos | Posted |
---|---|---|
1 | 04-19-2018 05:53 AM | |
1 | 04-13-2018 10:07 AM | |
1 | 04-13-2018 10:04 AM | |
1 | 04-13-2018 05:56 AM | |
1 | 12-04-2020 11:08 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|