|
BLOG
|
Thanks for this article! I've heard rumors that it's possible to set up a survey so that the most recently filled-out repeat can automatically populate/update a field in the main survey/table - is this true? We have a couple surveys where staff fill out the main section of the survey on their first visit to a site, and then they fill out a follow-up section, in a repeat, on subsequent site visits. It would be amazing if they could update the site status in the follow-up/repeat and have that automatically change the answer to the "site status" question in the main part of the survey, so that the map symbology (which is based on site status) could automatically reflect the current site status. An example of site status would be to change it from "good condition" to "poor condition." It's a "select one" question. Any thoughts on whether this would be possible? Thanks so much! Allen
... View more
09-17-2020
12:41 PM
|
1
|
0
|
86322
|
|
POST
|
Graham, Thank you so much for helping with this so quickly! I really appreciate it. I am now able to save changes to my site. Allen
... View more
08-31-2020
09:38 AM
|
1
|
0
|
2796
|
|
POST
|
Hello, I am working on updating my organizations AGOL content to HTTPS rather than HTTP. I need to change a few things related to that on one of our Hub Sites: County of San Luis Obispo When I try to save it after making some edits, such as changing image URLs to HTTPS, I get an orange error message along the bottom of the screen that stays for a few seconds and then goes away. The error message is: "TypeError: @esri/hub-sites: drafts only belong to a site or a page item model" The site's "save" button has an exclamation point next to it: and when I click the dropdown next to "save," it has this list of options. None of them get me any closer to saving my edits. This site was created before I joined my organization; it might be somewhat "old." I have recently created other Hub Sites and have never had this issue before. Any ideas? Thank you! Allen
... View more
08-27-2020
04:24 PM
|
0
|
7
|
2906
|
|
POST
|
Hi there, I have a question related to the new question types, and also using custom JavaScript functions in Survey123 (Survey123 Connect and Excel), in the new version of Survey123 coming out in July 2020. I attended the Survey123 sessions at the 2020 UC with Ismael Chivite and James Tedrick and attempted to ask questions, but my questions - in every session - were labeled as "waiting for review" and were apparently never viewed by anyone! I also made appointments with Survey123 team members in the Showcase but no one ever met with me. So here I am! I learned that "geopoint" questions will now be called "map" questions. In my existing surveys that have geopoint questions, will I have to go back into the Excel and change them to "map" questions in order for the survey to still work with the new version of Survey123? I learned that custom JS functions will now be required to go in a folder called "scripts." This folder used to have to be called "extensions." I have two existing surveys that use JS functions in "extensions." Will I have to rename the folder to "scripts" in order for my custom JS to continue to work properly in my surveys with the new version of Survey123? Thank you! Allen
... View more
07-16-2020
11:49 AM
|
1
|
2
|
1639
|
|
POST
|
Oh, huh! I've learned from experience that it's necessary to have the "r" in front of the path, but I didn't know what it actually meant or did, so that's a big help to know that it helps prevent unintended escapes due to backslashes! That makes sense.
... View more
06-16-2020
03:23 PM
|
0
|
0
|
2800
|
|
POST
|
Thanks for that tip! hmmm.... my script has been working fine with the single backslashes, so your post makes me wonder why I haven't had problems with that!
... View more
06-16-2020
02:23 PM
|
0
|
0
|
2800
|
|
POST
|
Thanks for your suggestions, Joe and Egge-Jan! I quit and then reopened ArcMap and tried again, and this time the code was pasted normally and it worked. I'd still be quite interested to hear if anyone has an answer to my question, just out of curiosity. But I guess the moral of the story is: if you have a problem, quit the application and then try again. --Allen
... View more
06-16-2020
02:21 PM
|
1
|
0
|
2800
|
|
POST
|
Hello there, I've been working on creating some Python scripts, and I've been testing out parts of them by copying and pasting the code from PyCharm into the Python window in ArcMap. That has worked perfectly for many days, until today. Today, when I've tried copying and pasting this script (which is for undoing some of what my real script does, so that I can re-test it), it gets pasted in an unusual font. I HAVE RUN THIS SCRIPT SUCCESSFULLY BEFORE. But today, it does not seem to be recognized as code. It does not automatically get the dots on the left-hand side of the lines of code that it normally gets. And the code does not run, as you can see in the error message at the bottom. Can anyone help me get back to the correct style pasting? Why is this happening? Thank you!
... View more
06-16-2020
11:32 AM
|
0
|
6
|
2868
|
|
POST
|
Thank you, David! Based on your suggestion, I tried removing the [] around the field name, and that didn't accomplish anything. Then I put the [] back on, and I tried adding the index to this line: row[0]=str(counter), and it worked! Now I am able to change values to be multiple characters. I thought I wouldn't need to use the [0] because I was only using one field, rather than two, but I suppose it does make sense that it's still necessary, because the field is a list in this code. The field length is 50.
... View more
06-08-2020
01:44 PM
|
0
|
0
|
4992
|
|
POST
|
Thanks for your reply, Dan! I tried that right after reading your reply, and unfortunately it did not change the results.
... View more
06-08-2020
12:55 PM
|
0
|
2
|
4992
|
|
POST
|
I'm just learning about Cursors and am trying out the UpdateCursor with fake data in a feature class in a file geodatabase. I am working towards editing values in existing rows. I have been able to successfully do this to an extent: I'm using a counter to give each row a unique value, starting at 1. The data type is text/string (because this field is for building number, so it could include a building number such as H-101 or something). When the counter hits double-digits, i.e. 10, it throws a Type Error - "sequence size must match size of the row." I read about this error on this Esri page: Error: TypeError: sequence size must match size of the row But nothing there seemed to apply to my code. Does arcpy think that a double-digit number has two pieces, so it cannot be put into one cell?? Here is my code: import arcpy
fc = "H:\ActiveShooter\ActiveShooterAutomation\ActiveShooterAutomation.gdb\Fake_AS_buildings"
# This worked only up to 9, assigning building numbers from 1 to 9. Error after 9:
# "TypeError: sequence size must match size of the row" ???
counter = 0
with arcpy.da.UpdateCursor(fc, ["BUILDING_NUMBER"]) as cursor:
for row in cursor:
counter += 1
row = str(counter)
print(row, type(row)) # For testing/diagnostic purposes
cursor.updateRow(row) Here is what happened in ArcMap. The cell values were successfully edited/entered, up through 9. Can anybody help me figure out why this error is occurring? Thank you!! Allen
... View more
06-08-2020
11:21 AM
|
0
|
7
|
5166
|
|
IDEA
|
Esri staff: Is there any news about this issue? It does feel quite unreasonable to be unable to view or add new photos to an existing survey (like when opening it from the inbox). It's so inconvenient to have to put the photos within repeats, because it makes the survey more complicated for users, the data/photos are harder to find and access in the data tables, and perhaps most importantly, the photos within repeats cannot be displayed in a convenient way in a web map or dashboard. This seems like a serious problem and is making things really difficult for my organization. Thanks for reading.
... View more
05-07-2020
10:26 AM
|
6
|
0
|
4729
|
|
POST
|
Hi Doug, The trick I mentioned in my previous post, making the repeat's appearance "minimal," did work! But of course it would be ideal if it would work without having to change the appearance. Allen
... View more
04-14-2020
02:49 PM
|
0
|
0
|
3541
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-30-2025 05:49 PM | |
| 1 | 09-30-2025 03:01 PM | |
| 1 | 09-30-2025 05:42 PM | |
| 1 | 11-01-2023 11:39 AM | |
| 1 | 11-21-2024 04:21 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|