POST
|
@XanderBakker I am trying to do something similar and calculate the the change in lake level from the most recent reading to the previous reading. I tried the code and just changed the feature and date fields to start with and get and error at the ; at the end. Test execution error: Unexpected token '${value}'.. Verify test data. // get related records
var fs = FeatureSetByRelationshipName($feature, 'lake_level');
// sort the related records and get top 2
fs = Top(OrderBy(fs, '_date DES'), 2);
// get the latest and previous features
var result = Null;
if (Count(fs)==2) {
var cnt = 0;
for (var f in fs) {
cnt += 1;
if (cnt == 1) {
var f_latest = f;
} else if (cnt == 2) {
var f_prev = f;
}
}
// determine NewCasesToday and calculate increment
var cases_latest = f_latest.NewCasesToday;
var cases_prev = f_prev.NewCasesToday;
result = cases_latest - cases_prev;
}
// return the result
return result; Any help would be appreciated. Thanks
... View more
09-28-2023
06:09 AM
|
0
|
0
|
125
|
POST
|
Solved the issue. https://support.esri.com/en-us/knowledge-base/problem-unable-to-view-survey123-feature-services-in-ma-000028133
... View more
05-23-2023
07:49 AM
|
1
|
0
|
465
|
POST
|
Found the solution. https://support.esri.com/en-us/knowledge-base/problem-unable-to-view-survey123-feature-services-in-ma-000028133
... View more
05-23-2023
07:27 AM
|
0
|
0
|
253
|
POST
|
How are you copying it? If you try to copy and past the excel file you will run into issues. You can save a copy from the the Connect app by click on the 3 dots. https://doc.arcgis.com/en/survey123/browser/create-surveys/createsurveys.htm
... View more
05-11-2023
06:01 AM
|
0
|
0
|
261
|
POST
|
I am having an issue viewing images in publicly shared maps that are collected in Survey123 made in Connect . This appears to be a new issue, as I am able to view them fine in older surveys I have created. The images work with a token, but I get this error when trying to view them without one. {"error":{"code":404,"message":"Unable to complete operation.","details":["None. This feature has no associated attachments."]}} As a test, I made a new survey in Connect using the included Basic template and changed nothing. I have the same issue with that survey, but one I made with the Survey123 web designer works fine. I think the problem must be with the way Survey123 Connect is publishing the surveys. I am using version 3.17.54 Has anyone else seen this issue? Any solution? Thanks
... View more
05-11-2023
05:54 AM
|
0
|
1
|
314
|
POST
|
Here is the expression : // first read out the ID of the selected feature (the primary key of the relationship in the parent layer, in this case "globalid") var id = $feature.globalid; // access the related table (in this example "relatedtable" is the name of the related table/layer on the map) var tbl = FeatureSetByName($map, "SCCF_Wildlife_Sightings_view_for_web - observations"); // create a sql expression to query related records based on the primary key and the foreign key for the relationship (in this case, "globalid" from the parent layer, and the "parnetglobalid" from the related layer/table) var sql = "parentglobalid = '" + id + "'"; // filter the table using the sql expression var related_data = Filter(tbl, sql); // return an attribute value from the related record (objectid and id of the first attachment) for (var row in related_data) { var reloid = row.objectid;} var AttachID = First(Attachments(row)).ID // other url parameters (Part1 is the REST URL of the hosted feature layer var Part1 = "https://services8.arcgis.com/7G8krbiqT95v3p7f/arcgis/rest/services/SCCF_Wildlife_Sightings_view_for_web/FeatureServer/1/" var Part2 = "/attachments/" //construct the attachment url var url = Part1 + reloid + Part2 + AttachID //return the url for the attachment return url Here is a link it returns: https://services8.arcgis.com/7G8krbiqT95v3p7f/arcgis/rest/services/SCCF_Wildlife_Sightings_view_for_web/FeatureServer/1/8/attachments/1 That is the correct URL and if I click on it from the attribute table it opens with a token at the end. I have shared the featured class publicly so I don't know why it does not work without the token. Thanks
... View more
04-11-2023
06:14 AM
|
0
|
1
|
550
|
POST
|
If you make a join and check the box to" Create results as hosted feature layer view" it should update when new data is entered.
... View more
04-10-2023
04:16 PM
|
0
|
0
|
232
|
POST
|
I have a Survey123 feature class containing a related table (repeats) with image attachments. Following this method I was able to get the required URL to show the image in the pop-up. https://support.esri.com/en-us/knowledge-base/how-to-show-attachments-from-a-related-tablelayer-in-t-000027210 It returns the correct URL minus the token. I I have shared the feature class publicly, but still get an error when trying to view it. As I said I know the URL is correct as I have compared it the actual one for the attachment. The calculated one ends FeatureServer/1/8/attachments/1 where the actual logged in one ends with FeatureServer/1/8/attachments/1?token=XXXX I get the following error when trying to view the image attachment without a token even though it is shared publicly. {"error":{"code":404,"message":"Unable to complete operation.","details":["None. This feature has no associated attachments."]}} Anyone know what the problem might be? Thanks
... View more
04-10-2023
01:36 PM
|
0
|
3
|
573
|
POST
|
No, I have not made the upgrade yet, so I have not try to get it to work.
... View more
03-31-2023
08:40 AM
|
0
|
0
|
214
|
POST
|
I spent over 3 hours trying to figure this same problem out, until I found your post. Hopefully they will get it fixed soon ! Thanks!
... View more
03-29-2023
05:58 PM
|
0
|
0
|
1006
|
POST
|
I have a web map in experience builder that sends data to a survey123 survey when a point feature in the web map is clicked. This works fine. However if the survey is attempted to be submitted and errors are detected for missing required fields, and the user then clicks back on any feature in the map the survey reloads and looses all the data that was entered. Is this a bug or is there a setting I need to change? Thanks
... View more
03-21-2023
09:46 AM
|
0
|
0
|
199
|
POST
|
I have a hosted feature class that is linked to Survey123. It shows the number of people who have completed the survey per US state. I am trying to show the states symbolized with a color gradient or classes. The problem is as more surveys are filled out the symbology classes / maximum values does not update. Since I don't know how many people will ultimately fill it out I cant predefine the class or range. Is there a way to get them to update automatically each time a new record is created? Thanks AJ
... View more
03-20-2023
10:46 AM
|
0
|
2
|
331
|
POST
|
Has anyone used the new Trimble R780 with Field Maps on Android? My local Trimble rep says it will not work with Trimble Mobile Manager, which is needed with Field Maps. ESRI developers seem to think it does work as it is listed here: https://doc.arcgis.com/en/field-maps/ios/help/high-accuracy-data-collection.htm Thanks AJ
... View more
03-07-2023
08:03 AM
|
0
|
0
|
182
|
POST
|
@Robert_LeClair Any update on this feature for ArcGIS Pro? I see that it has been implemented for the Online maps. Thanks
... View more
02-08-2023
12:12 PM
|
0
|
1
|
417
|
Title | Kudos | Posted |
---|---|---|
1 | 02-17-2021 01:03 PM | |
1 | 05-23-2023 07:49 AM | |
2 | 05-28-2021 07:41 AM | |
1 | 04-09-2021 05:41 AM | |
1 | 03-30-2021 12:29 PM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|