|
POST
|
Hi John, Attached are the two surveys where I am experiencing issues. The Paving Cuts-First Inspection survey opens from the Inbox. The Repair Location details is a read only group that provides our inspector with information about the repair and is the parent record to Paving Cut Details. The Contract question is set in the office prior to the inspector performing this inspection so when he opens the survey, it already has a value. My intent is for the Contract question to automatically populate answers for the Vehicle Detector, Pavement Markings, Reuse Curbing and Reuse Pavers questions. I also will have these same survey questions be hidden based on the selected contract type. I have kept them visible thus far to ensure the answers I want are calculated correctly. The table below shows how I want the answers to be determined based on the selected contract type. Asphalt Base Road Concrete Base Road Sidewalk Grass Vehicle Detectors No Default Answer No Default Answer Not Applicable (Hidden) Not Applicable (Hidden) Pavement Markings No Default Answer No Default Answer Not Applicable (Hidden) Not Applicable (Hidden) Reuse Pavers Not Applicable (Hidden) Not Applicable (Hidden) No Default Answer Not Applicable (Hidden) Reuse Curbing No Default Answer No Default Answer No Default Answer Not Applicable (Hidden) I am trying to ensure that there are answer to these survey questions when they are not visible to the inspector and force them to make answers when they are visible. There are several questions following these that will have similar logic applied but I haven't added that as I haven't gotten it working for these fields yet. At the bottom of the survey is a third related table that will store bid items related to the work done for the parent Paving Cut record. The calculations I have here work as expected. Also attached is a survey called From 6. This is a simple Survey that just has the Contract type and four questions and is not tied to my feature service in AGOL nor does it have any related records/repeats to deal with. I just wanted to see if I could get the calculations to work based on a selection I make and received the same results as above. Thanks for your help.
... View more
07-23-2018
05:22 AM
|
0
|
2
|
5610
|
|
POST
|
I have two point feature layers. One represents cleaning and the other catch basins. The cleaning layer exists as a hosted feature service in ArcGIS Online. In ArcGIS Pro, I am trying to run the below code to snap cleaning points to catch basin points so they are coincident. It only runs through the main loop one time. It used to run fine but now I can't figure out why. I am not a programmer so I am hoping someone that is can help me figure out why my code won't loop more than once. Any ideas? Thanks! arcpy.env.overwriteOutput = True
arcpy.env.workspace = "E:\MDC\Catch Basin Cleaning\map_docs\Catch Basin Cleaning 2018\Inspection 2018 Review.gdb"
cleaning_fc = 'Cleaning and Sediment Monitoring'
catchBasin_fc = 'ssCatchbasin'
objId_field = 'OBJECTID'
name_field = 'SAPLINKID_FK'
name_field2 = 'SAPLINKID'
#Create a where clause based on the cleaning date
aCleanDateWhereClause = "CleanDate >= timestamp '2018-06-26 01:10:00'"
aTownWhereClause = "TOWNCODE = '01'"
#Create layer files
cleaning_layer = arcpy.MakeFeatureLayer_management(cleaning_fc, "cleaning_lyr", aCleanDateWhereClause)
catchbasin_layer = arcpy.MakeFeatureLayer_management(catchBasin_fc, "catchbasin_lyr", aTownWhereClause)
#Clear any selections
arcpy.management.SelectLayerByAttribute(cleaning_layer , "CLEAR_SELECTION")
arcpy.management.SelectLayerByAttribute(catchbasin_layer , "CLEAR_SELECTION")
#Create a search cursor using an SQL expression to count
#total number of cleaning records to be snapped
totalRec = 0
with arcpy.da.SearchCursor(cleaning_layer, [objId_field, name_field]) as cursor:
for row in cursor:
totalRec += 1
print ("Total Cleaning Recs: " + str(totalRec)) #I get 734 records here
#Create a search cursor using an SQL expression to loop through only
#those points that have been created since a specific date. Snap those
#cleaning points to the ssCatchbasin so they are coincident
curRec = 0 #counter for keep tracking of where we are in the loop
#the same loop below only runs one time
with arcpy.da.SearchCursor(cleaning_layer, [objId_field, name_field]) as cursor:
for row in cursor:
curRec += 1
sapLinkId = row[1]
if "GIS" in sapLinkId:
layer1 = arcpy.management.SelectLayerByAttribute(cleaning_layer , "NEW_SELECTION", "SAPLINKID_FK=" +"'"+row[1]+"'")
layer2 = arcpy.management.SelectLayerByAttribute(catchbasin_layer , "NEW_SELECTION", "SAPLINKID=" +"'"+row[1]+"'")
arcpy.Snap_edit(layer1, [[layer2, "VERTEX", "120000 feet"]])
percentDone = round((curRec/totalRec)*100,0)
print("Processing row " + str(row[0]) + " for SAPLINKID " + row[1] + " ("+ str(percentDone) + "% percent complete)")
print ("Done!")
... View more
07-20-2018
04:33 AM
|
0
|
10
|
3511
|
|
POST
|
Thanks for the reply and verifying the calculation trigger bug. Is this just limited to drafts and inbox surveys? I created a simple form with just a few fields to replicate the behavior from my mark out form. When I click a contract type I want the select_one questions to become -1, 0 or 1. When I select a contract type, nothing happens to any of my questions. I changed one question type to just a text question to see if I could just have a text answer populated in the question and see this string in the question when my form opens: SyntaxError: Expected token `;' in expression: if ( /Form_6/Contract =1,"Success", "Fail") Is this related to the calculation trigger bug, something different or am I doing something wrong? Thanks for the help.
... View more
07-19-2018
03:47 AM
|
0
|
4
|
5610
|
|
POST
|
I am having trouble getting calculations to work in my form. The calculation occurs in a related record that is opened via the inbox. The source for my form is a hosted feature layer in ArcGIS Online. The fields in question are all part of the same record. The Contract field (part of the related record) in my survey has a value when it is opened in Survey123. The values come from a choice list: 1: Asphalt Base road, 2: Concrete Base Road, 3: Sidewalk, 4: Grass. There are four select_one fields that I want to be populated with an answer based on the this contract type. These fields can have an answer of -1: Not Applicable, 0: No, 1: Yes. The contract type will determine how each of these will have their answer calculated. Eventually, I am going to hide the fields that don't fit with a certain contract type. For example, a grass cut does not have vehicle detectors and so would have an answer of -1 (Not Applicable) and be hidden for this contract type. When a field needs an answer, I want each select_one question to not have an automatically calculated answer because I need the user to make a choice. If they don't choose one, it will be caught when then try to submit the form because these fields are required. As I understand it, the calculation should occur every time an answer is changed on my form. That doesn't seem to be happening. When the survey is opened and a field changed, the calculations don't appear to run. If I click the refresh arrows next to the select_one fields nothing appears to happen. I attached my form. Can anyone find anything wrong with my formulas? Am I misusing the calculation column? What am I missing? Thanks.
... View more
07-18-2018
11:08 AM
|
0
|
8
|
5830
|
|
POST
|
Thanks for the links Mikie! Exactly what I needed. I don't know how I missed those in my searching.
... View more
07-13-2018
08:46 AM
|
2
|
0
|
2120
|
|
POST
|
I have been taking advantage of the new nested repeat functionality and love it! It will finally allow me to have a more normalized data structure for one of my workflows...or so I thought. I have three tables (Repair Locations, Cut Details and Bid Items) with a one-to-many relationship between each of them. The workflow involves: Our repair crews going out and capturing the location of a repair as a point in a hosted feature layer. A user in the office then adds one or more cuts at the repair location. An inspector then returns to the site and does a mark out and records the date of mark out, the job status out and dimensions of the cut(s) in the Cut Details table. The inspector returns to the site after the cut has been repaired by a contractor and records the materials used in the bid items table and updates the job status in the Cut Details table. The inspector returns again at a later date for a final inspection to ensure the cut is still in good condition and certifies the cut as complete, again in the Cut Details table. This is somewhat simplified and more data is collected at each step than I detailed. But the main point is that there are multiple visits to a location during the workflow. I have created three surveys to handle each separate visit to the site by our inspectors (attached below). At each visit, they need to be able to edit existing data in related tables that was edited in a previous step of our workflow. From my testing so far, it doesn't appear that Inbox supports the editing of existing related features. Is this correct? I hope I am just missing something because Survey123 provides lots of functionality that is of great value to our workflow in terms of making fields required, pick lists for users, hiding certain fields, etc. that prevent a lot of issues we have encountered with poor data entry doing this workflow via AGOL web maps and a single feature class. If editing existing relates is not available, is this something that is being considered for a future release? Does anyone have suggestions for a workaround? Thanks!
... View more
07-13-2018
06:09 AM
|
0
|
2
|
2281
|
|
BLOG
|
Are there any plans to support images when using the Inbox to edit existing features? If you are using the Inbox to edit existing features, be aware that as of 2.4 the Inbox does not support images of any type (signatures, photos, drawings or annotated images).
... View more
07-12-2018
11:21 AM
|
1
|
0
|
16758
|
|
POST
|
This happens across a number of devices (all IPads). They were all set up the exact same and restrictions are enabled on each IPad so that changes to each IPad by the end user are minimized. When it happens it appears to be for 2 or 3 days in a row but not every point has this issue. For example, on 3/19/18, every point collected by one user was collected at 0,0. On 3/20 only 9 out of 23 were collected at 0,0 (see image below). This behavior is similar for other users as well.
... View more
06-07-2018
05:51 AM
|
0
|
1
|
1772
|
|
POST
|
I have a problem with the location that a survey is recorded being way off. The majority of my points are collected where the user is standing. However, I always find a bunch of points that are not correctly located. The points get collected off the coast of Africa and these points all get collected at the exact same location. This happens on different IPads and I do not have a geopoint question as part of my survey. Has anyone else experienced this? Thanks!
... View more
06-07-2018
04:42 AM
|
0
|
3
|
1971
|
|
POST
|
I have an indicator element configured to show the footage of sewer pipes cleaned for the current date (today). If no pipes are cleaned today, the table is empty, and the indicator element displays "No Data." Is there a way to replace the "No Data" string with something more logical like "No mains cleaned today?"
... View more
01-17-2018
09:24 AM
|
0
|
1
|
846
|
|
BLOG
|
With Collapsible Groups, I don't see the compact choice in the appearance column drop-down for an existing survey. I do see compact as a choice in the appearance column when I create a brand new survey. Is the compact appearance for groups supported for exiting surveys? Thanks!
... View more
04-27-2017
09:23 AM
|
0
|
0
|
4188
|
|
POST
|
What did tech support say about this? Should others call to up the importance of this problem? This is a big deal for us as we have three separate workflows that rely on a Survey123 app launched from a custom URL in Collector. If this doesn't work, our data collection grinds to a halt while the field work continues. We have been fighting an uphill battle as it is with these new solutions.
... View more
12-22-2016
07:19 AM
|
0
|
5
|
1349
|
|
POST
|
I have a survey that has a number of default values applied to several questions. One of my field guys asked if there is a way to change one of those values. My first thought was to use the Set as favorite answers option. However, it doesn't appear to be working. After I tap on Set as favorite answers and then go to paste them in a new record, nothing happens. I have a number of questions that have default values applied when the survey opens; one is a date field and the rest are select single questions. Could this be the reason? I made a duplicate copy of my survey and removed all default values and was then able to successfully Paste answers from favorite. However, it was copying and pasting the entire record. I only answered 8 out 16 questions and then did Set as favorite answers. I thought that when I then pasted the favorites, only those 8 answers would be pasted to the survey and my user could answer the rest of the questions. Has anyone else experienced this or can provide some insight as to what might be going on? Thanks!
... View more
10-28-2016
09:05 AM
|
0
|
0
|
923
|
|
POST
|
I think I have this figured out. As part of my hosted feature services for manholes, I also have a layer for capturing the inspection data data via the submission URL. Because I didn't want my field workers to be able to make changes to the manhole geometry, I had editing restricted to attribute updates only. I didn't realize that when the inspection data was submitted that Survey123 was also capturing the location of that survey and adding a point to my inspection layer. In hind sight I should have realized this sooner as the original layer I created in desktop, prior to uploading to AGOL, was a point feature class. Anyway, once I updated my edit settings to add, update and delete, I was able to successfully submit the survey!
... View more
10-06-2016
04:58 AM
|
0
|
0
|
1746
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-06-2026 10:40 AM | |
| 1 | 01-06-2026 06:37 AM | |
| 1 | 07-01-2025 10:11 AM | |
| 2 | 06-11-2025 11:28 AM | |
| 1 | 08-28-2023 12:24 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|