|
POST
|
I am using the query widget within a launchpad themed web application (online web app builder). Although I configured the widget to use the symbology from the layer it only takes it partly (left picture): I can understand if the symbology is too complicated for the query widget to combine colors and ring sizes but at least I would expect that it would take over the ring categories. Is there a way I could specify this symbology (or at least taking over the ring categories) in the json directly? The symbology is defined inside the feature service. EDIT: Interestingly this worked well in a different version of the same app that uses a different web map with a different feature service but both feature services are using the same symbology. (right picture)
... View more
02-21-2019
05:33 AM
|
0
|
0
|
673
|
|
BLOG
|
Hi Liam, normally it should work with adding more fields with a & as you did. If it is not populating the data it might be due to a misspelling of the field name or the question name where the answer is populated to. At least that was always my problem...
... View more
02-21-2019
02:44 AM
|
0
|
0
|
8073
|
|
POST
|
We have been using the App and Map Gallery Template to provide a list of available downloadable data (mainly excel files but will also contain pdf in future). While this was never the ideal solution it as least provided the option of directly downloading the data. (For those who are not aware: the App and Map Gallery Template is no longer available as a template under the web app options.) When I now do for example the Category gallery app I would always have to go through the item details page to download the data. I like this app better because the filtering can be done as I am used to in AGOL but I don't want my user to go through the item's details page every time he wants to download an excel file. Any workaround for this issue?
... View more
02-21-2019
02:40 AM
|
0
|
0
|
406
|
|
POST
|
Thanks for looking into it Randy. I only select the first file in the directory because the structure should be for all files inside the directory the same. They are all then processed within a seperate step (in the main python script). I could also use the table as a parameter and take its path to find the directory to process all the files, that is correct. [Is there a way to avoid the table view to be added to the map document and to be stored as a seperate process in the results window?] I only need to check for the first row because if the value of the first row is none the whole column will be empty. The min and max values are specified by the user, they are not derived from the parameters but mean the depth range for the parameters to be extracted. From the error message I get, I assume I would have either to store my list of values in a different "format" than a list OR I have to set the input Data Type (which is field at the moment) differently but I can't figure out either way.
... View more
02-21-2019
02:08 AM
|
0
|
0
|
4905
|
|
POST
|
If not it would be definitely a good idea to be posted!
... View more
02-20-2019
09:44 AM
|
2
|
0
|
748
|
|
BLOG
|
Are the user permissions the same for submitting a case and submitting a bug or enhancement request? I for example can request a case but I don't find anywhere how to submit a bug or an enhancement request.
... View more
02-19-2019
04:27 AM
|
0
|
0
|
4410
|
|
POST
|
It is a custom script I wrote for a bigger project. I will send it as a private message.
... View more
02-19-2019
01:22 AM
|
1
|
0
|
2473
|
|
POST
|
Hi folks, with help of https://community.esri.com/people/xander_bakker/blog/2016/07/19/implementing-cascading-drop-down-lists-in-a-toolbox-using-validation-with-python I gained some understanding how I can make my script tool take conditions and additional information to fill the tool. I have three input parameters (a directory, a min and a max value). I would like to have a multiple choice list of those indicators in my txt file (in that directory) that are not empty. My validator should check the first txt file in that directory, read the field names, if they are not within a list of excluded field names then read the first value, if it is not None than add the field name to a list. Works perfectly in pyscripter. And I also get the correct list displayed in my tool script. Buuut, the tool says the parameter's field type is invalid after displaying the field names. I could imagine that it has something to do with the filter in the parameter which is set to DataType=Field but of course it is not really a field name any longer after returning it from my script. But what else could I use? Or can I somehow tell the self.params that it is still a (list of) field name(s)? This is my updateParameters. def updateParameters(self):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
if filedir:
arcpy.env.workspace = filedir
list_of_files = arcpy.ListFiles("*.txt")
firsttable=list_of_files[0]
print(firsttable)
print(filedir)
complete_filename = str(filedir)+"\\"+firsttable
print(complete_filename)
table=arcpy.MakeTableView_management(complete_filename, "kivu_tview")
desc = arcpy.Describe(table)
#fieldnamesoriginal=[field.name.encode("utf-8") for field in desc.fields] ##collects all fieldnames
fieldselectlist=[]
for ofields in desc.fields:
ftype=ofields.type
fname=ofields.name.encode("utf-8")
if ftype=="Double" or ftype=="Long":
print(fname)
if fname!="Profile_No" and fname!="Longitude (degrees_east)" and fname!="Latitude (degrees_north)" and fname!="Bot. Depth (m)" and fname!="Depth (m)":
with arcpy.da.SearchCursor(table, fname) as calcursor:
for calcrow in calcursor:
if calcrow[0] is not None:
fieldselectlist.append(fname)
break
print(fieldselectlist)
self.params[3].filter.list =fieldselectlist
self.params[3].value=fieldselectlist
return
Any hint would be highly appreciated.
... View more
02-19-2019
01:04 AM
|
0
|
14
|
6567
|
|
POST
|
Updated link: Generating a choice list from a field
... View more
02-18-2019
10:15 PM
|
0
|
0
|
2330
|
|
POST
|
Thank you Khaled! I haven't thought of the sync option yet! Somehow I thought it would also not support attachments but it works like a charme! So this is what I do now: 1. load the feature service into an MXD where I also have the local and updated version of the feature class. 2. Create a local copy of the feature service for editing on a very small extent which keeps the download small. 3. Run a script tool that - downloads the json of the existing AGOL feature service and write the UIDs in a list. - compares the UIDs of my desktop feature class with the ones in the list from above. - select those items with UIDs that are not in the list and copy them to a new feature class in an otherwise empty gdb (copying the items keeps the attachments). - use the geoprocessing tool append to append the new features to the old features 4. Sync with server version. Awesome simple after wasting a lot of time trying to find a more AGOL focused solution...
... View more
02-18-2019
04:57 AM
|
1
|
2
|
2473
|
|
POST
|
I have a web application with a web map that has a layer of locations of a couple of sites and related tables. Depending on which user (can be up to 6 different users) is looking at the application he should only be able to see the data related to "his" site. This works in general well when I define a layer view and assign the new view to the map and then the new map to the application. But this would mean I would have to create 6 different maps and apps to have views per site/user. Is there a way to have all the views saved in the map but only show the ones that are shared with the user? And (what might be more tricky) to apply the application widgets only to the available layer? Or is there a different way to show certain data of a layer only to a certain user? All layers, web maps and applications are hosted on AGOL.
... View more
02-18-2019
01:56 AM
|
1
|
1
|
1283
|
|
POST
|
Luke already gave me the correct answer but to answer your question (and maybe to give a hint to other people reading this): I am running the script from a Script tool (from the toolbox) within ArcMap 10.6.
... View more
02-17-2019
10:54 PM
|
0
|
1
|
4770
|
|
POST
|
Thanks Luke! Why I didn't find that option?! That does exactly what I was looking for. I have script validation in my script but there are a couple of still valid steps that would throw an error at a later stage whith an error message that my client would not understand 😉
... View more
02-17-2019
10:53 PM
|
0
|
0
|
4770
|
|
POST
|
Hi folks, I have some preconditions to run my python script tool, for example that you have to create a local copy for editing first when using a hosted feature service layer. I can use exit() with an if statement (I also tried exit(0) and exit(1)) and it stops my script but it "pretends" to have ran succesfully which it did not (because I stopped it before proceeding). I would like to show the user a last message so he knows what he has to do before running the script again. Like the system error messages you find in that geoprocessing window but more helpful 😉
... View more
02-16-2019
02:31 PM
|
0
|
5
|
5556
|
|
POST
|
This is so disappointing 😞 do you have another suggestion how this could be achieved?
... View more
02-16-2019
01:25 AM
|
0
|
4
|
2473
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-09-2023 03:26 AM | |
| 1 | 02-13-2019 01:51 AM | |
| 1 | 04-03-2025 11:07 AM | |
| 1 | 01-14-2024 01:34 PM | |
| 1 | 10-01-2018 10:23 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|