I am having some issues. In ArcGIS, I created a custom toolbar (with the python addin wizard) to do the following: 1. Button to connect to feature class, 2-5. A series of comboboxes to view, edit data in a field in the feature class. I want each of the combo box classes to directly connect to the field. And be able to write new data from the boxes into the fields.
Example: Combobox 1 to connect to field 1. So that when I deploy this a user can edit data without doing this the traditional way. Its a way to have inexperienced users edit data. I am new to python and willing to pay for the time required to help me as I am out of ideas. And ESRI doesn't have a solution either.
import arcpy import pythonaddins from arcpy import env class ButtonClass1(object): """Implementation for QuickTableEdit_addin.button (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): print("Button1 Clicked") env.workspace = "C:/data" arcpy.CreateTable_management("C:/data", "test_table.dbf","template.dbf") mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd) dbf_Table = arcpy.mapping.TableView(r"C:\data\test_table.dbf") arcpy.mapping.AddTableView(df, dbf_Table) arcpy.RefreshTOC() pass class ComboBoxClass2(object): """Implementation for QuickTableEdit_addin.combobox_1 (ComboBox)""" def __init__(self): self.items = [1,2] self.editable = True self.enabled = True self.dropdownWidth = 'WWWWWW' self.width = 'WWWWWW' def onSelChange(self, selection): global cb1 cb1 = self.value pass def onEditChange(self, text): pass def onFocus(self, focused): pass def onEnter(self): pass def refresh(self): pass