|
POST
|
So, I'm not completely sure without testing it myself, but I believe select_multiple questions store the answer as a string, separated by commas. So instead of 'One_time_fee' and 'Monthly_fee', it would be 'One_time_fee, Monthly_fee'.
... View more
03-17-2022
04:24 PM
|
0
|
2
|
2421
|
|
POST
|
The short answer for right now is "no", but you can create a custom tool in a Toolbox by right clicking on the Toolbox > New > Script. Katherine_Clark_0-1647436530767.png Since @jcarlson was so generous with sharing his code, I'd like to share what I did to take it a step further and set up this tool so that others in my organization who didn't have programming experience could search for items. (setup for ArcGIS Pro) When setting up the tool parameters, I entered "Web Map" and "Web Application" in the Value List I created for that parameter. This creates a drop down in the tool and ensures there won't be any typos in the user input that would break the code. Katherine_Clark_2-1647436908885.png Also, if anyone reads this who is completely new to Python, I wanted to point out that when setting up tools to use within Pro or ArcMap, you use arcpy.AddMessage() to print messages to the console instead of a traditional print() statement. And this is what the output looks like (nothing fancy) - this particular layer is only used in one web map. (side note - the time it takes to run depends on the number of items in your Organization's contents. It may run much quicker if you have fewer items to search through). Katherine_Clark_3-1647437736336.png This community has helped me so much throughout the years, I like to give back when I can. I hope this helps..... Best, Katherine from arcgis.gis import GIS
import pandas as pd
# Log in to portal; 'home' uses the credentials used to login within Pro
gis = GIS('home')
# Set up input parameters to use in the GUI
find_id = arcpy.GetParameterAsText(0)
search_type = arcpy.GetParameterAsText(1)
find_url = gis.content.get(find_id).url
if search_type == 'Web Map':
arcpy.AddMessage("Searching for Web Maps. This could take a few minutes...")
# Pull list of all web maps in portal
webmaps = gis.content.search('', item_type='Web Map', max_items=-1)
# Return subset of map IDs which contain the service URL we're looking for
matches = [m.id for m in webmaps if str(m.get_data()).find(find_url) > -1]
# Create empty list to populate with results
map_list = []
# Check each web map for matches
for w in webmaps:
try:
# Get the JSON as a string
wdata2 = str(w.get_data())
criteria = [
wdata2.find(find_url) > -1, # Check if URL is directly referenced
any([wdata2.find(i) > -1 for i in matches]) # Check if any matching maps are in app
]
# If layer is referenced directly or indirectly, append map to list
if any(criteria):
map_list.append(w)
# Some apps don't have data, so we'll just skip them if they throw a TypeError
except:
continue
output = pd.DataFrame([{'title': m.title, 'id': m.id, 'type': m.type} for m in map_list])
arcpy.AddMessage(f"OUTPUT TABLE: \n \n {output}")
if search_type == 'Web Application':
arcpy.AddMessage("Searching for Web Applications. This could take a few minutes...")
# Pull list of all web apps in portal
webapps = gis.content.search('', item_type='Application', max_items=-1)
# Create empty list to populate with results
app_list = []
# Return subset of map IDs which contain the service URL we're looking for
matches = [a.id for a in webapps if str(a.get_data()).find(find_url) > -1]
# Check each web app for matches
for w in webapps:
try:
# Get the JSON as a string
wdata = str(w.get_data())
criteria = [
wdata.find(find_url) > -1, # Check if URL is directly referenced
any([wdata.find(i) > -1 for i in matches]) # Check if any matching maps are in app
]
# If layer is referenced directly or indirectly, append app to list
if any(criteria):
app_list.append(w)
# Some apps don't have data, so we'll just skip them if they throw a TypeError
except:
continue
output = pd.DataFrame([{'title':a.title, 'id':a.id, 'type':a.type} for a in app_list])
arcpy.AddMessage(f"OUTPUT TABLE: \n \n {output}")
... View more
03-16-2022
06:37 AM
|
26
|
11
|
9732
|
|
POST
|
I have wondered this same thing, and if it's possible to copy widget properties through JSON or something else programmatically? We use app templates like this but face the same issue as you, needing to reconfigure the widgets when the data source is changed.
... View more
03-15-2022
05:04 PM
|
0
|
0
|
1175
|
|
POST
|
Silly question, but you're sure the file name and file extension are the same? (I've run into things being case sensitive with the file extension). And did you add new fields (columns) to the CSV, or just new features (rows)? I've heard that a good method for troubleshooting is opening the CSV in Notepad instead of Excel, as this will allow you to see how the data is structured without the GUI making assumed corrections. Perhaps there's an errant character in there somewhere that's messing up the comma separation?
... View more
03-15-2022
01:03 PM
|
0
|
0
|
1165
|
|
POST
|
I was just researching this the other day, and from what I can tell it's still not possible to put photos from a repeat within specific cells in a Word doc template. 😞 For one survey in particular I opted to have individual photo questions (one for each cardinal direction), so that I could put them within a table in the template and get the formatting just right. But I have many other surveys where that's not a feasible schema and repeats are necessary. So yes, I hope they implement this soon!
... View more
03-15-2022
11:28 AM
|
2
|
0
|
3180
|
|
POST
|
Well, some updates to a survey won't have any negative effect on existing data. If you're doing updates that will affect existing data, Survey123 Connect will give you a warning before you publish. If you decide to proceed, it is recommended to download the data from the Feature Service as a FGDB before republishing. Look at the "Update Surveys" section of this documentation for more info.
... View more
03-15-2022
08:33 AM
|
1
|
1
|
1085
|
|
POST
|
Thank you @MichelleMathias and @DanPatterson for your responses! I'll do that for now, but definitely looking forward to a UI/UX update later in the year. 🙂 I reference my own posts with some frequency so it will be very helpful!
... View more
03-14-2022
12:10 PM
|
2
|
0
|
3641
|
|
POST
|
In case anyone comes across this post in the future, wanted to update that I was able to solve the problem by using the Templates button instead of "Create" as the documentation/blog post showed. Katherine_Clark_0-1647283927912.png When I set up the flow through the template, the dynamic content populated without issue.
... View more
03-14-2022
12:05 PM
|
0
|
3
|
6800
|
|
POST
|
Hello, I feel like I am missing something really obvious, but I haven't been able to find a simple "My Posts" or "My Questions" section on here. Under my profile, there's "My Ideas" and also "My Subscriptions", but the Subscriptions section includes everything I've commented on, not just content I've created. Am I just missing something here, or is this feature not available? @MichelleMathias Thanks!
... View more
03-14-2022
11:47 AM
|
2
|
5
|
3656
|
|
POST
|
The information submitted through the survey is stored in the Hosted Feature Layer associated with the survey.
... View more
03-14-2022
06:59 AM
|
0
|
0
|
1035
|
|
POST
|
I only just made my first summary report a couple days ago, so I'm not used to the nuances specific to that vs. a regular report yet. What specific error are you getting?
... View more
03-10-2022
12:04 PM
|
0
|
1
|
1501
|
|
POST
|
I don't think it's possible to dictate this within the report template itself (as far as I know at least...) but you could have a hidden question in your survey and populate that with the value you want from the report using a custom JavaScript function for string slicing. That's my first thoughts anyway 🙂
... View more
03-10-2022
11:54 AM
|
0
|
0
|
1512
|
|
BLOG
|
Hello! I know this article is over a year old now, but wanted to say thanks for writing this - very helpful! "Unfortunately, as of the time I write this, it is not possible to arrange photos [from a repeat] in a table (each photo in its own cell)." Is this still the case? Being able to put specific photos from the repeat into specified cells in a report template would be a game changer! Are repeat values indexed? Perhaps you could possibly implement something like this by using syntax along the lines of: ${#incident_photos}${$file[1] | size:300:0} ${/} Where the [1] indicates the second photo from the repeat (assuming the indexes start at zero). Is something like this being considered for future product plans? @IsmaelChivite @MJBiazar
... View more
03-10-2022
09:00 AM
|
1
|
0
|
6402
|
|
POST
|
I don't know of a way to change the default value, but in my experience it's not a big issue since you can just manually type in a report name. Or are you trying to automate the process and want to control standardized naming conventions?
... View more
03-09-2022
03:52 PM
|
0
|
0
|
3747
|
|
POST
|
Yeah, I still use Classic Map Viewer as well for compatibility reasons. Just change the alias in the attribute configurations menu Katherine_Clark_0-1646864219177.png
... View more
03-09-2022
02:17 PM
|
1
|
2
|
12385
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | a month ago | |
| 1 | a month ago | |
| 1 | 3 weeks ago | |
| 2 | a month ago |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|