POST
|
Hi @GregKeith ,
The `stats` syntax utilizes the outStatistics parameter of the /query operation, and can only calculate statistics for one field. The # sign means there are multiple values here, and you can iterate each one in the report.
In your case, since you can ensure there is only one number (not multiple values) in the stats result, so the syntax can be simplified from ${#MySurvey | stats: “sum, male_interact, m_sum”} ${m_sum}${/} to ${MySurvey | stats: “sum, male_interact}. Notice that the # pound sign has been removed to indicate there is only one value in the result.
You can find examples in this help topic: https://docdev.arcgis.com/en/survey123/browser/analyze-results/featurereportqueries.htm
Hence, you could try the following syntax to add the 3 numbers: ${(survey|stats:"sum, male_interact")+(survey|stats:"sum, female_interact")+(survey|stats:"sum, child_interact")} (my survey layer name is `survey`).
... View more
2 weeks ago
|
1
|
0
|
53
|
POST
|
Hi @GregKeith ,
Assuming there are 3 records in your layer:
For male_interact, the value of the 3 records are: 1,2,3
For female_interact, the value of the 3 records are: 4,5,6
For child_interact, the value of the 3 records are: 7,8,9
Can you please confirm the expected result is 1+2+3+...+7+8+9=45?
... View more
11-14-2024
03:16 AM
|
0
|
1
|
169
|
POST
|
Hi @ChrisHertel ,
The error message indicates something occurs when the report service tries to assemble data from the feature layer before printing the report. However, the feature layer does not return the data as expected since it considers some parameters for the /query request are invalid.
Is this issue still reproduceable on the current Survey123 website? If yes, can you please repeat the workflow on the beta website https://survey123beta.arcgis.com and share with us the faild job ID so we can look into the details?
... View more
11-14-2024
03:11 AM
|
0
|
0
|
106
|
POST
|
Hi @JackTsai ,
In addition to the multiline appearance, are there any other settings for the image question? Can you please try the latest 3.20 version of Survey123 Connect?
I don't observe the issue in a 3.20 version survey: https://survey123.arcgis.com/share/75954408a0cc4ea4afca9e0a47e4c0cd.
... View more
11-12-2024
12:01 AM
|
0
|
0
|
80
|
BLOG
|
Hi @Blevins_Mark ,
Can you please share more details about what the expected map extent is or how the expected map extent relates to "another question"?
When printing either a single feature or multiple features on a map in the report, the report engine will automatically center to the feature(s) unless you specify the mapExtent parameter. For example: ${geopoint1 | mapExtent:116.440:39.955:116.468:39.971}.
... View more
10-08-2024
12:37 AM
|
0
|
0
|
388
|
BLOG
|
Survey123 report capabilities allow you to generate high-quality reports in PDF or Word document formats based on survey data, including attributes, geographic features, and attachments. A report uses a Word document with placeholders as a template. The Survey123 report API replaces these placeholders with actual data when the report is printed. If you're not familiar with Survey123 reports, you can learn the basics from the following resources: ArcGIS Survey123: Create Feature Reports - YouTube (7 minute video) Get started with Survey123 reports (Esri blog post) Understanding Survey123 Feature Reports (Esri community blog post) In Survey123 reports you can include text, tables, images, and - of course - maps! In this blog, we will discuss several methods available for printing maps in reports. Print a single feature on a map If your survey includes a map question (geopoint, geotrace, or geoshape), you can easily print the specific feature on a map. For example, select a record on the Data page of the Survey123 website: ${geopoint1 | size:400:300} - prints the feature in a 400 * 300 pixel map image, using the web map configured for the geopoint1 question. ${geopoint1 | map:"dc0722c1c56c47268da4c1e046516b21" | size:400:300} - prints the feature on top of a specific web map. Print multiple features on a map (where method) In a summary section of report, you may want to display multiple features on a single map. To achieve this, make sure to include multiple records as the input for the report. For example, select all the records you want to print in the summary report on the Data page of the Survey123 website: ${geopoint1 | where:"1=1" | size:400:300} - prints all features from the input on a single map, using the web map configured for the geopoint1 question. ${geopoint1 | where:"STATE_NAME='California'" | map:"dc0722c1c56c47268da4c1e046516b21" | size:400:300} - only prints features of input records where the attribute STATE_NAME equals "California", on top of a specific web map. Print features using the $shape keyword In some cases, a survey may be created from an existing feature layer without including a map question. For instance, in an asset inspection survey, there might not be a map question to prevent altering the asset's location. In such cases, the $shape keyword, which represents the geometry of the feature, can be used to print features in a report. ${$shape | size:400:300} - prints the feature of the input record. ${$shape | where:"1=1" | map:"dc0722c1c56c47268da4c1e046516b21" | size:400:300} - prints all input features on top of a specific web map in a single map image. There are several additional methods to control the look and feel when printing a map: ${geopoint1 | mapScale:100000} - mapScale:<scale> controls the scale of the map, which will always center on the feature or features in the input. ${geopoint1 | mapExtent:116.440:39.955:116.468:39.971} - mapExtent:<xmin>:<ymin>:<xmax>:<ymax>:<wkid> sets a fixed extent when printing a map. If WKID is omitted, 4326 will be used. This is an alternative to using mapScale, allowing you to control the map center regardless of where the input feature is. ${geopoint1 | drawingInfo:"currentLayer"} - drawingInfo can override the default symbology (e.g., the blue pin for a geopoint) used by the report engine with the drawing information defined in the feature layer JSON. "currentLayer" refers to the layer where geopoint1 resides. You can also reference any feature layer by replacing "currentLayer" with a feature layer URL (e.g., https://.../FeatureServer/0). Note: this only works for input features to the report and does not affect any features or symbology defined in a web map. One important note for all the above methods is that the specified web map is printed as a reference background under the input features. If a web map includes layers that contain the survey data, features printed by a survey question could conflict with features on the web map. To resolve this, you can use the $map keyword and the mapFilters method introduced in the September 2024 update for ArcGIS Survey123. Print a web map without referencing a map question in the survey ($map keyword) Previously, displaying a web map in a report required either referencing a map question in the survey or using the $shape keyword. The $map keyword enables you to print a predefined web map directly in your report without needing to reference a map question. For example: ${$map | map:"dc0722c1c56c47268da4c1e046516b21" | size:400:300} - prints the specified web map as is. Filter features in operational layers of a web map (mapFilters method) A layer in a web map may contain more data than necessary for your report. To filter the features of a feature layer within the operational layers of a web map, you can use the mapFilters:"<parametersForQueryOperation>" method. The parameters can include common /query operation parameters such as where, objectIds, orderByFields, and resultRecordCount. Use = to assign a value to a parameter, and the & symbol to combine multiple parameters. For example, if a web map contains a single operational layer with all cities in the USA: ${$map | map:"7f2ef03be73a4b51b9e0480df46de7b1" | mapFilters:"where=STATE_NAME='California'"} - prints only the cities where the STATE_NAME attribute equals "California". Note that the text in the where clause must be enclosed in single quotation marks ' '. ${$map | map:"7f2ef03be73a4b51b9e0480df46de7b1" | mapFilters:"where=1=1&orderByFields=POP2000 DESC&resultRecordCount=10"} - prints the first 10 cities with the highest population in the USA on the map. If a web map contains multiple operational layers and you want to filter each one, you need to specify the layer id in web map JSON for each feature layer and concatenate all layers using a colon `:`. The format is {... | map:"<itemId>" | mapFilters:"'<layerId1inWebMapJSON>':<parametersForQueryOperation>":"'<layerId2inWebMapJSON>':<parametersForQueryOperation>":...}. For example, imagine a web map that contains two layers: a layer of states and a layer of cities in the USA, where the cities layer is related to the states layer via the parentGlobalID field. In the web map JSON: 1918fe218e1-layer-5 is the layer ID for states, and 1918f9f547a-layer-4 is the layer ID for cities. e4a6f9ce-bc61-428c-8c26-202ff62e509e is the global ID of California in the states layer. ${$map | map:"7f2ef03be73a4b51b9e0480df46de7b1" | mapFilters:"'1918fe218e1-layer-5':where=GlobalID='e4a6f9ce-bc61-428c-8c26-202ff62e509e'":"'1918f9f547a-layer-4':where=parentGlobalID='e4a6f9ce-bc61-428c-8c26-202ff62e509e'"} - prints the state of California and all cities related to it on the map. You can replace the static global ID value with its field name in the states layer. In this case, when you select any state as the input for the report, its global ID value will be dynamically replaced in the placeholder, allowing the map to display the selected state and its cities: ${$map | map:"7f2ef03be73a4b51b9e0480df46de7b1" | mapFilters:"'1918fe218e1-layer-5':where=GlobalID='"+GlobalID+"'":"'1918f9f547a-layer-4':where=parentGlobalID='"+GlobalID+"'"} Other considerations and tips for filtering features in a web map To keep the syntax in the report template simple, it's recommended to filter only one layer in the web map. If you need to filter multiple layers, you must inspect the /data of a web map to identify the ID for each layer to be filtered. Each layer ID should be enclosed in single quotation marks ' '. If you encounter a syntax error when uploading a report template or printing a report, check the related syntax to ensure that there are no missing double quotation marks, single quotation marks, or colons. Other resources Survey123 Tricks of the Trade: Summary sections in reports (Esri community blog post) Survey123 Tricks of the Trade (Live): Create Report Templates (60 minute webinar) Automate reports using Make.com (3 minute video) Survey123 Tricks of the Trade (Live): Automate Reports using Microsoft Power Automate (60 minute webinar)
... View more
09-19-2024
07:38 PM
|
5
|
5
|
882
|
BLOG
|
Hi @SMH-Rio , Thanks for the screen recording which helps us understand the details of the issue. We have applied a potential fix on the production website for the report page when signing into an ArcGIS Enterprise in the latest September Update 2024, could you try again and let us know if the report page can work for your portal?
... View more
09-18-2024
02:57 AM
|
1
|
0
|
420
|
POST
|
Hi All, The "Internal server-side error" has been resolved on the production website. Please let us know if you continue to experience any issues. To provide more context, the issue was caused by the `type` property being absent in the layer object of `layers` within the JSON response for a hosted feature layer in ArcGIS Enterprise 11.0 and earlier versions. As a result, this affected surveys published in ArcGIS Enterprise 11.0 and earlier versions. Thank you all for the feedback.
... View more
09-17-2024
10:48 PM
|
4
|
4
|
399
|
POST
|
Hi @lmendez_sp , On the Beta website, we have applied another potential fix today. Can you please try again? If you are still having issues when generating a report, please share with us the screenshot and the failed job id so we can investigate further. If the issue still occurs on My surveys page, please follow with Zach's suggestion. Thanks,
... View more
09-14-2024
06:49 AM
|
0
|
3
|
674
|
BLOG
|
@ademshark , You can use the Survey123 web app to edit a record as long as knowing the global ID, by using the URL like https://survey123.arcgis.com/share/1cb28b212b5542acbbdbaa35feba0765?mode=edit&globalId=<globalId>. Here is more information about directly editing in the Survey123 web app: Survey123 Tricks of the Trade: Editing records in a web form.
... View more
09-12-2024
08:24 PM
|
1
|
0
|
356
|
IDEA
|
09-12-2024
03:36 AM
|
0
|
0
|
100
|
BLOG
|
Hi @ShariF , If you are using the Survey123 web app, for customized form elements, including the Submit button, you can use hidden appearance to hide them. In addition, you can use ?hide=submit URL parameter to hide the Submit button. The Submit button cannot be hidden by body::esri:visible column currently. Like abureaux mentioned, you can set the required column of a (hidden) question to prevent from submitting the survey. Would you mind sharing your use case that requires hiding the Submit button by using an expression?
... View more
09-08-2024
11:16 PM
|
0
|
0
|
3026
|
BLOG
|
@SIG-EscutismoCNE , To only show a field if not null, you can use the string-length() formula. For example, in the relevant or body::esri:visible of the target question, use string-length(${question_one})>0 will only show the target question if question_one is not null. You can also replace question_one with the current question name or a dot "." (represents the current question) too.
... View more
09-08-2024
10:54 PM
|
0
|
0
|
3035
|
POST
|
Hi @DerrickWestoby , Filtering feature dynamically is now available in the Survey123 Beta website, please refer to Solved: Re: Survey 123 feature report - filter map using g... - Page 3 - Esri Community for more details.
... View more
09-05-2024
08:49 AM
|
0
|
0
|
231
|
BLOG
|
@SMH-Rio , The pt-br locale issue has been fixed on the latest Survey123 beta website https://survey123beta.arcgis.com. Could you try again to see if this works for your portal?
... View more
09-04-2024
08:28 AM
|
0
|
0
|
593
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
5 | 09-19-2024 07:38 PM | |
1 | 09-18-2024 02:57 AM | |
4 | 09-17-2024 10:48 PM | |
1 | 09-12-2024 08:24 PM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|