I have spent some time this month trying to understand how the Citizen Problem Reporter solution works There are a lot of basic questions I had that I couldn't find answers to on the Get Started page or elsewhere on the world wide web.
I thought I'd share some of the answers I've figured out with the automated deployment of the Citizen Problem Reporter Solution and see if anyone else has other questions/solutions!
Question | Answer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why do I only see "Configured group is invalid or no items have been shared with this group yet." on my Reporter application? | This has to do with the fact that the configured group does not contain at least one map with at least one editable layer that is accessible to the current user. If the group does contain an editable map with an editable layer, then check the sharing. It may be that you haven't updated the sharing of the group or if you have, perhaps you are not Signing In with the proper account -- Sign in with ArcGIS if it isn't shared publicly. I kept trying to sign-in as Guest longer than I care to admit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why can't I see the image tab on a selected report in the Citizen Problem Manager? | This tab is only visible when the selected report contains at least one image attachment, or images and charts defined as part of the popup configuration. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why can't the user attach photos to reports? | Attachments aren't enabled. When you do this process automatically, the layers are automatically uploaded to AGO. The attachment section of the form where photos and other supporting files can be added to the report is only available when attachments are enabled on the layer. This can be easily done by going to the feature layer in AGO and clicking "Enable Attachments". | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I add fields in the form of the Reporter? |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I delete fields in the form of the Reporter? | Open ArcGIS Pro. Add the Report Layer or Comment Table that the field is located in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I turn off fields in the form of the Reporter? | If you don't want to display a field, but you aren't ready to delete it, go to the AGO web map that the layer is on. Go to Configure Pop-Up and then click Configure Attributes and just uncheck the Display. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why can't the user edit the fields in the form? | First, when you are creating the field in the Configuration Task via ArcGIS Solutions, it's vital that you give the field a Field Length. The other issue may be that editing isn't enabled on the layer or in the pop-up. When you are in the AGO web map, Configure Pop-Up and then click Configure Attributes and ensure that the Editing box is checked in addition to the Display check box. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How can manipulate how every report/comment looks? | As far as I can't tell, you can't change the look of the form itself. However, once the report/comment is posted, you can change how this looks. This again happens in the AGO Web Map layer pop-up. When you go to Configure Pop-Up you have a few options. Under Pop-up Contents --> Display dropdown, change it to A custom attribute display --> then CONFIGURE. Here, you can add your own text and pull information from the report/comment fields (by clicking the + box; see image below). Scroll to the bottom where it says Pop-up Media. Here you can add a standard image/chart to all of the posted reports/comments. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I change colors and text in the Reporter? IMPORTANT NOTE: it is highly recommended that when these changes are made to Reporter maps/layers/applications, they are also made to the respective maps/layers/applications in the Manager for consistency and clarity purposes. |
|
Do you have other solutions or questions? I'd love to hear them!
So that worked. Okay can you try the following code in Pro, you just need to update the path_to_files to be the directory containing the servicefunctions.py and associated files.
import sys
path_to_files = r'C:\Temp\scripts'
sys.path.insert(0, path_to_files)
import servicefunctions
servicefunctions.main(path.join(path_to_files, 'servicefunctions.json'))
Chris,
Looks like the variable 'path' needs defined:
Traceback (most recent call last):
File "<string>", line 11, in <module>
NameError: name 'path' is not defined
Sorry try this:
import sys, os
path_to_files = r'C:\Temp\scripts'
sys.path.insert(0, path_to_files)
import servicefunctions
servicefunctions.main(os.path.join(path_to_files, 'servicefunctions.json'))
Here's the result:
ERROR: Failed to process service https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest/services/CitizenProblems_landuse/FeatureServer/0
'FeatureLayer' object has no attribute '_lazy_properties'
ERROR: Failed to process service https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest/services/CitizenProblems_bb0fbdc850114e6f8c11c32b9768e643/FeatureServer/0
[WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Does anyone know if there is a way to removed the sign in/splash screen altogether? I love the actual reporting screen but I don't want the sign in screen.
Yes - the splash page will not display if you turn off all the sign in options (including Guest) in the application configuration.
Thank you!
Does anyone know if there is a way to add a button on the dialog content box? I'm using it as a disclaimer popup on the app launch, and would like to add a Ok button to the bottom of it rather than the X. I've tried a couple of things in HTML but not having much luck.
I'm having problems configuring the Generate IDs section of Citizen Problem Reporter. I believe I have it set up correctly, but after running the servicefunctions.py script from VS Code 2019 I get a warning in the console and the Citizen Reporter layer table was not populated.
"WARNING: Sequence Unique ID not found in sequence settings"
I posted this question in more detail in Local:
Any plans to make this available in Enterprise, or will it just remain on AGOL?