POST
|
Hello, I would like to have a survey123 web form a user can input two coordinates and have a line created between the two points with the line distance shown. I found this post from several years ago that had a link to the Lines and Polygons sample in ArcGIS Survey123. I published the sample survey and just tried in the web browser, but it looks like the web form functionality is not there (just is hanging up with message 'This is a read-only question', however it works on the mobile app. Is there a work around now years later? Ideally I would have Survey123 form in Experience Builder with the functionality for the user to enter in coordinates in the survey form, have the points show in the Experience Builder map and then a line drawn based on the 2 entered points with a distance calculated. I have seen demos of data collected on the EB map that gets sent to the survey form, but is it also possible to have the data entered into the survey form within survey widget show on the EB map and not in the survey form map? Thanks! Any suggestions for how to achieve this in a web browser are much appreciated. Hopefully I'm just missing something. Thanks, Kathy
... View more
04-19-2023
12:23 PM
|
0
|
2
|
689
|
POST
|
Hello, I wanted to check if the functionality to create a line from 2 geopoints exists in the web form now since it years later or if continues to only be available in the field app. I would similarly like to use survey123 and Experience Builder where folks can input coordinates for a start and end point, and a resulting line is created by Survey123 on the map in Experience Builder. Is this possible? Thanks, Kathy
... View more
04-17-2023
10:20 AM
|
1
|
0
|
557
|
POST
|
I'm glad that 'username' works for you. Thanks also for sharing about First and Last name being stored in the app. The way we have our usernames is basically the first "." last, so that is why I had the split of the username and then proper function. I also added a table basically as a lookup table to the web map and then query the table for username to get the initials to add into our sample number field. This has worked offline, except in order for the lookup table calculation to query we are needing to download the offline map from the device created offline area. The AGOL web map settings generated offline map for whatever reason fails on this calculation offline. I did submit a tech support case and a bug was logged, but good info to have in hand if a calculation is failing try another method for generating offline maps - it may just work? On the backend how the offline maps are generated between the device generated and web map settings is somehow a little different. Maybe this is another potential work around with a lookup table ? So many bugs to keep track of.
... View more
04-12-2023
02:42 PM
|
1
|
0
|
491
|
POST
|
Yes it works or its been working and biologists are collecting data in Alaska working on skiffs/remotely...... Full name would not work because when offline you only have access to the Field Maps username as they are signed in. I think I tried fullName and that did work only online. That is my understanding/experience.
... View more
04-11-2023
04:21 PM
|
0
|
3
|
513
|
POST
|
Hi @BrantCarman We have been using GetUser() offline for the last month and it is grabbing usernames in Field Maps successfully 🙂 Below populates the sampler name field based on username. var user = GetUser(FeatureSetByName($map, 'Herring Samples:')).username
var sampler = Split(user,'.')
var user1 = Proper(sampler[0])
var user2 = Split(sampler[1],'_')
var fid = Text(user1 + " " + Proper(user2[0]))
return fid
... View more
04-11-2023
03:59 PM
|
0
|
5
|
754
|
POST
|
Thanks so much and appreciate it on the testing. I'm a bit of an Island in our organization. The table screenshot above was from ArcGIS Pro so the first few values in the AKCreationDate wrote with the 8 hour offset from UTC datetime which was perfect. I found that out on AGOL/web maps with the data displaying with local browser and its just easier on my part for processing data and dashboards to also have an AKCreationDate field. Usually I would have python script tool that updates the fields (using the code below), but thought I would try to make use of the arcade calculated expressions this go around. So one step forward but also backward if the data isn't accurate for what I intended. with arcpy.da.UpdateCursor(value, ["CreationDate", "AKCreationDate", "AKDate","ManagementArea"], 'OBJECTID = ' + str(oid)) as tbl:
for r in tbl:
utc = r[0]
arcpy.AddMessage(str(utc))
ak = utc.replace(tzinfo=pytz.UTC)
r[1] = ak.astimezone(pytz.timezone(AKzone))
r[2] = r[1].strftime('%m/%d/%y')
... View more
04-11-2023
09:55 AM
|
0
|
0
|
1514
|
POST
|
Thanks for the reply. I believe I commented it out, because I felt like 'ToLocal' wasn't working 'offline'. If Now provides the value in the local system of the client, why add the ToLocal(Now())? In reviewing the expressions, for one of the layers I have the following expression. Ideally all I want is the local time of the CreationDate that will work offline and not change when syncing offline edits. The screenshot below shows the arcade expression and resulting datetime in Alaska or that was my goal. You can see the location Fix Time in UTC. The first few records in AKCreationDate look good, but we have a boat using Starlink so they are basically connected. Then the other records match the fix time and those were collected offline and those values were not converted to local datetime which leads me to believe ToLocal does not work offline. var dt_now_utc = Timestamp()
var akdt = ToLocal(dt_now_utc)
if (IsEmpty($feature.AKCreationDate)){
return akdt;
}else{
return akdt;
}
... View more
04-11-2023
08:46 AM
|
0
|
7
|
1525
|
POST
|
Good Morning, We publish our AGOL hosted feature layers with a UTC date/time knowing then the CreationDate and EditDates will be in UTC. In addition, we have been adding a local DateTime field that gets calculated based on the CreationDate field usually in a post-survey script process. Now with arcade expressions, I wanted to use this functionality to auto-populate these fields, but I'm seeing discrepancies for what displays on the iPads then what writes to the AGOL feature layer tables. Also if the calculations recalculate when offline data is synced, then that is another consideration as posted here: Below is one version I have started out with, which displays accurately in Field Maps in the layer form on the tablet, but when the data is synced from offline the date writes to the feature layer table in UTC. //var dt_now_utc = Timestamp()
var akdt = Now()
//var akdt = ToLocal(dt_now_utc)
if (IsEmpty($feature.AKCreationDate)){
return akdt;
}else{
return akdt;
} I have also tried to this which writes to the feature layer tables better (although if it recalculates when the offline edits sync, then this no longer works). This also isn't great because it displays in the tablet 8 hours behind the current time which doesn't look accurate even though it is writing to the tables accurately. var dt_now_utc = Timestamp()
var akdt = DateAdd(dt_now_utc, -8, 'Hours')
if (IsEmpty($feature.AKCreationDate)){
return akdt;
}else{
return akdt;
} What is the recommended arcade functions to get a local data time field to calculate using arcade expressions with offline data collection and for the data to be accurate when offline edits sync, do these values update then to the local time I think they do change. Thanks in advance!, Kathy
... View more
04-10-2023
09:39 AM
|
0
|
9
|
1610
|
POST
|
Hi, In a few Field Maps forms we have added arcade calculations and work offline. For one of the calculations, it was querying the layers for a max value (which I ended up changing the logic since offline this value is different than online). Anyway what a few users experienced is the feature/form offline would populate and they would submit their edits. The points show on the map, but then when they would sync the offline edits the one field with this 'maximum' calculation changed which in our case was the sample number/label on the map so it was an obvious change. This didn't make sense except if the form recalculates when syncing? Thanks for the info!, Kathy
... View more
04-07-2023
05:29 PM
|
4
|
0
|
581
|
POST
|
Hi!, I'm still running into issues with the code above in ArcGIS Pro 3.0.3 although it seems to work for 1 polyline layer and not another? In the code below, the second line with .sdf will work and not throw an error, but the original code statement like your example throws an error. Can you help translate why this would be? Another weird thing happening, is when the code calculates the length, it is changing the CreationDate/EditDate fields or actually all DateTime fields which I don't remember happening. thanks for any insight/translation? 🙂 #df = lyr.query(where = "LENGTH_NM IS NULL", out_sr = 26931, as_df=True)
df = lyr.query(where = "LENGTH_NM IS NULL", out_sr = 26931).sdf
... View more
04-01-2023
04:17 PM
|
0
|
0
|
1639
|
POST
|
Hello, As noted by others posting recently and I also had an incident yesterday luckily a user was just testing, but if arcade expressions fail in the Field Maps form this does prevent a user from submitting that feature. PLEASE modify the app to STILL ALLOW a feature to be submitted if a calculation is failing in the form. Expressions are great, I tested in the Designer and worked great but we work offline and use the app for aerial surveys, so its an expensive fail if we can't collect data based on a calculation failing. The Field Maps Designer would also benefit from having an offline tester so folks KNOW which expressions also work offline. The issue is also noted in this post. I want to use the expressions, but need reliability in data collection. Thanks, Kathy
... View more
03-14-2023
07:18 AM
|
1
|
0
|
316
|
POST
|
Hi, I have similar expressions set up and we are just going to be starting offline surveys. When you say the expressions don't always calculate do they show consistently with the red message 'failed to calculate' in the layer form? How are you downloading/creating the offline map areas? We did recently log a bug/defect in that the offline map generated from the AGOL web map settings, when we opened the form 2 of the calculated expressions did not work. However when we download an offline map using the device to create the offline map these expressions DO work. So something is happening when the maps are packaged up. Also we are using AGOL and iOS, what environment and device are you using? We work 100% offline and this is the first go of using these expressions in all the layer forms, so I'm hoping they are reliable, but at the same time already logged a defect. Thanks, Kathy
... View more
03-13-2023
08:52 AM
|
0
|
1
|
683
|
POST
|
Update: As it turns out, I had a bad install of ArcGIS Pro. An uninstall/install solved both the missing packages in the package manager on this post (https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-pro-3-1-0-arcgis-package-does-not-show-in/m-p/1266840#M8488) The code above now works too! which is great but just wish I would have realized something wasn't right on the install earlier.
... View more
03-11-2023
08:15 AM
|
0
|
0
|
1743
|
POST
|
Ok, yes I had a bad install. The uninstall/reinstall now show the arcgis and arcpy packages and the code error now works as well. I wish I would have figured this out days ago. Thanks!
... View more
03-11-2023
08:06 AM
|
0
|
0
|
1498
|
POST
|
Thanks Dan. I just searched 'Add Packages' there is no arcgis or even arcpy showing up as an option. Seems odd? I know I didn't have to add them in on the 2.9 install. Do you think this is causing the code above to throw an error or just another issue. thanks, Kathy
... View more
03-10-2023
06:57 PM
|
0
|
0
|
1539
|
Title | Kudos | Posted |
---|---|---|
2 | 03-19-2024 09:57 AM | |
2 | 03-14-2024 03:22 PM | |
1 | a month ago | |
1 | 03-23-2024 12:55 PM | |
1 | 03-18-2024 07:19 PM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|