|
DOC
|
Shauna-Rae, it seems ESRI created their own widget which is very similar to mine, you can find it here: ArcGIS Web Application Here is the link to the code: solutions-webappbuilder-widgets/CoordinateConversion at dev · Esri/solutions-webappbuilder-widgets · GitHub I wonder if they looked at mine and thought it was a good idea Hope this helps, Tim
... View more
04-14-2017
05:28 AM
|
0
|
0
|
3278
|
|
POST
|
As you mentioned in your first paragraph, the Nena fields will be set fields. I will populate the first column with the Nena field names and the user will match their street field, with the corresponding Nena field name. Now my next challenge will be how I access the values that the user chose and match them up with my calculate field code.
... View more
04-12-2017
08:22 AM
|
0
|
0
|
591
|
|
POST
|
Again great information! Your code was really helpful!!! I think this is what you meant. Once they are done filling it out it will run through the "Add field" and "Calculate field" code.
... View more
04-12-2017
08:08 AM
|
2
|
2
|
591
|
|
POST
|
Agreed, that is a good website. Thanks again for the python addin suggestion, it is so much faster. This is how it will look like: The only issue I need to solve is how to manipulate the layout because I will need 50!!!! combo boxes.
... View more
04-11-2017
10:56 AM
|
0
|
4
|
1458
|
|
POST
|
Hey Ben, I know this is a little late but the drop down count is determinant but the size of the self.items property in the def __init__ (self). Maybe the following works? import arcpy
import pythonaddins
class ComboBoxClass1(object):
"""Implementation for OSTDS_3_addin.combobox (ComboBox)"""
def __init__(self):
self.items = ["","","","","","","","","",""]
self.editable = False
self.enabled = True
self.dropdownWidth = 'WWWWWWWWW'
self.width = 'WWWWWWWWW'
def onSelChange(self, selection):
mxd = arcpy.mapping.MapDocument("CURRENT")
dataFrame = arcpy.mapping.ListDataFrames(mxd, "*")[0]
county = (selection)
county_name = str(county)
gdb_path = r"my\\path\\ex.gdb\\"
county_path = gdb_path + county_name
newlayer = arcpy.mapping.Layer(county_path)
arcpy.mapping.AddLayer(dataFrame, newlayer, "BOTTOM")
arcpy.RefreshActiveView()
arcpy.RefreshTOC()
del county, county_name, newlayer
def onEditChange(self, text):
pass
def onFocus(self, focused):
if focused:
self.items = ["Alachua","Baker","Bay","Bradford", "Brevard", "Broward", "Calhoun", "Charlotte", "Citrus", "Clay", "Collier", "Columbia", "Dade", "Desoto", "Dixie", "Duval", "Escambia", "Flagler", "Franklin", "Gadsden", "Gilchrist", "Glades", "Gulf", "Hamilton", "Hardee", "Hendry", "Hernando", "Highlands", "Hillsborough", "Holmes", "IndianRiver", "Jackson", "Jefferson", "Lafayette", "Lake", "Lee", "Leon", "Levy", "Liberty", "Madison", "Manatee", "Marion", "Martin", "Monroe", "Nassau", "Okaloosa", "Okeechobee", "Orange", "Osceola", "PalmBeach", "Pasco", "Pinellas", "Polk", "Putnam", "SantaRosa", "Sarasota", "Seminole", "StJohns", "StLucie", "Sumter", "Suwannee", "Taylor", "Union", "Volusia", "Wakulla", "Walton", "Washington"]
def onEnter(self):
pass
def refresh(self):
pass Tim
... View more
04-11-2017
10:47 AM
|
0
|
0
|
1157
|
|
POST
|
Of course I would share it! For our data I have the street model finished already, but I thought it might be a good idea to create this customized model, so other agencies don't need to go through all the hassle.
... View more
04-10-2017
10:42 AM
|
3
|
7
|
1458
|
|
POST
|
Duncan, great post! I have dabbled in Python Addins before and you are right this would be the best way to go. I just need to figure out how to in cooperate all the dropdown boxes that I need. Tim
... View more
04-10-2017
08:28 AM
|
1
|
10
|
1458
|
|
POST
|
Hey everybody, I am working on a Model in which you can use your current street centerline file and transform it into a NENA standard street centerline file. This includes having a lot of drop down boxes and check boxes. It seems the more drop down boxes and checkboxes I use, the more my model takes to respond. I was wondering if anyone has any suggestions to enhance the performance? Thanks, Tim
... View more
04-06-2017
07:53 AM
|
0
|
14
|
3380
|
|
POST
|
In case you use the webappbuilder, I created this: ArcGIS Web Application https://community.esri.com/docs/DOC-3262
... View more
03-24-2017
10:59 AM
|
1
|
2
|
853
|
|
POST
|
I created this some time ago: http://jsfiddle.net/timw1984/ahnmv8gy/embedded/result/ https://community.esri.com/people/timw1984/blog/2014/08/18/javascript-api-location-widget
... View more
03-24-2017
10:44 AM
|
1
|
0
|
853
|
|
POST
|
Hey everybody, I have a question about Calculate field in Model builder. My case is the following: I want the user to choose a field that will be calculated and then I want them to choose another field that will be used to calculate said field. It is kinda hard to explain so I have attached a screenshot. Thanks, Tim
... View more
03-07-2017
12:29 PM
|
0
|
2
|
2713
|
|
POST
|
And it was also a good feeling that I had 99% in my address point layer
... View more
02-24-2017
07:34 AM
|
1
|
1
|
2621
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2015 06:58 AM | |
| 1 | 05-04-2016 07:27 AM | |
| 1 | 07-06-2017 08:12 AM | |
| 1 | 10-26-2015 11:51 AM | |
| 1 | 12-12-2014 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|