POST
|
That was my thoughts also regarding the allocation of the objectid, but I notice that when I press submit and the submission is taking place, the concat of the text and the objectid does appear for a split second in it's correct form. Not sure if it's a bug or the functionality just isn't there
... View more
03-29-2022
07:58 AM
|
0
|
1
|
1568
|
POST
|
Thanks Damon, but this still doesn't work unfortunately. I have tried the following: var NewField = concatenate(['Text',$feature.OBJECTID]); return NewField and "Text" + $feature.OBJECTID In both instances, I can still see the correct output showing briefly when the form is submitting.
... View more
03-29-2022
05:28 AM
|
0
|
3
|
1577
|
POST
|
I understand calculated expressions are a fresh (and brilliant addition) to Field Maps, but should it be possible to automatically retrieve the objectid of the feature and use it to populate a field? My use case is that I want to assign a unique reference to each newly created feature with a concat of text and the objectid. I'm testing at the moment and I am only able to calculate the text part. Interestingly, when I submit the form, I can see that output of what I am after appears briefly during the submission of the form(suggesting to me that objectid has been retrieved), but it doesn't actually calculate the field with the full concat. TIA
... View more
03-28-2022
12:40 PM
|
1
|
7
|
1621
|
POST
|
Awesome as always @XanderBakker ,thanks for your help.
... View more
02-07-2022
02:14 PM
|
0
|
0
|
2761
|
POST
|
Hi @XanderBakker I'm digging this old post up. I'm looking to retrieve a specific attribute from the nearest feature (e.g I want to grab the asset ID from the nearest feature. I've tried tweaking the above expression, but it doesn't seem to be reliable in what it's retrieving. Any help would be greatly appreciated. var fs = FeatureSetByPortalItem(Portal('https://www.arcgis.com/'), '[item_id]', 0);
var buf = Buffer($feature, 500, "meter");
var fs_filtered = Intersects(fs, buf);
var cnt = Count(fs_filtered);
var min_dist = 999;
if (cnt > 0) {
for (var f in fs_filtered) {
var dist = DistanceGeodetic($feature, f);
if (dist < min_dist) {
min_dist = dist;
}
}
}
return f.[field_name];
... View more
02-02-2022
02:41 PM
|
0
|
2
|
2780
|
POST
|
Hi Josh, Thanks for highlighting the url request method. I think that will actually prove really useful! And yeah, I started with adding the locator to AGOL.
... View more
10-18-2021
06:57 AM
|
0
|
0
|
467
|
POST
|
I was wondering if it was possible to use Arcade or any other method to pull a w3w address through to a popup? TIA
... View more
10-18-2021
04:38 AM
|
2
|
3
|
489
|
POST
|
Thanks Doug, have undertaken the following and is working successfully! var sql = "GlobalID = '" + $feature.RELGlobalID + "'"; var layer = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), [item_id], 0,[field_name],false) var tbl = Filter(layer, sql) return First(tbl).[field_name]
... View more
10-14-2021
04:04 AM
|
1
|
0
|
2954
|
POST
|
Thanks Doug, not sure if I'm missing something, have tried.... var relatedrecords = FeatureSetByPortalItem(Portal([portal]),[item_id],0,[field_name]) for (var f in relatedrecords){ return f.[field_name] } You're correct, it's pulling through a value, but it's not pulling through the correct related value. It looks just grabbing the first value from the feature set (OID 1)
... View more
10-13-2021
12:46 PM
|
0
|
2
|
2966
|
POST
|
Thanks for the response Doug. Is this instead of using FeatureSetByRelationshipName? Like mentioned, I'm grabbing a value from the origin and populating the foreign
... View more
10-13-2021
12:01 PM
|
0
|
4
|
2968
|
POST
|
Hi Josh, Thanks for the reply. It's a one to many relationship so there will always only be one record to return anyway, and I'm trying to pull the value from the origin to the destination. As mentioned, this method works perfectly in an AGOL popup, but can't seem to apply the same method in Field Calculator. It's worth mentioning the Field Calculator successfully carries out the calculation, but no values are returned.
... View more
09-25-2021
06:33 AM
|
0
|
6
|
3045
|
POST
|
I was wondering if it was possible to use FeatureSetByRelationshipName to calculate fields in a related feature class? What I want to do is carry the values from a field in featureclass1 to an empty field in featureclass2. I can successfully achieve this in a popup in AGOL, but I want to do be able to achieve this in Field Calculator, and then ultimately Python to automate the process. At the moment, I am using the below expression for the popup, but it doesn't seem to work in Field Calculator: var relatedrecords = FeatureSetByRelationshipName($feature,"[relationship_name]") for (var f in relatedrecords){ return f.[field_name] } TIA
... View more
09-24-2021
09:17 AM
|
0
|
8
|
3087
|
POST
|
Unsure if known bug, but it appears that when a form is saved in Field Maps (on the web), the layer list in map viewer is flipped upside down (i.e. layers that were at the bottom of the layer list are now at the top). When I then open map viewer to reorder the layer list back to it's original state, a popup appears saying the map had been saved in map viewer classic. TIA
... View more
07-01-2021
04:11 AM
|
2
|
2
|
687
|
POST
|
Thanks @Anonymous User. That's correct yes. What's interesting - and I don't know if this is device specific - is that the images only appear in the DCIM folder when the device is restarted, otherwise they don't appear initially. Is there a timeline for when this is likely to be resolved?
... View more
06-01-2021
12:16 AM
|
0
|
0
|
1014
|
POST
|
I have a Samsung Galaxy Tab Active 2, and when adding an attachment to a feature within Field Maps, the photo is then being saved to the device (thus eating into the storage). I am pressing "Take Photo", and I've always found this doesn't save to the device when using iOS or other android devices. Any help/advice would be greatly appreciated.
... View more
05-27-2021
01:23 AM
|
0
|
3
|
1095
|
Title | Kudos | Posted |
---|---|---|
1 | 01-10-2023 08:18 AM | |
2 | 09-20-2023 09:21 AM | |
1 | 04-27-2021 04:25 AM | |
1 | 04-26-2023 02:48 PM | |
11 | 07-25-2022 08:52 AM |
Online Status |
Offline
|
Date Last Visited |
01-22-2024
11:37 AM
|