Select to view content in your preferred language

How to Build a Custom ArcGIS GP Tool to Add Rows to Related Tables with User Input?

139
1
Thursday
HarishManisekaran
New Contributor

 

I am building a custom ArcGIS GP tool to allow users to bulk add data to related tables based on selected polygons. The workflow is as follows:

  1. The user selects the related table to which they want to add rows.

  2. The tool then generates multiple input boxes based on the fields in the selected table, allowing users to input data.

  3. Upon running the tool, the data is inserted into the selected related table, and the rows are tagged with unique IDs derived from the selected polygons.

I have implemented this using the tkinter package, but I now want to integrate it into the ArcGIS GP Tool interface instead of using an external GUI. Can anyone guide me on how to set up the dynamic input boxes and table insertion within the native GP Tool interface?

 

0 Kudos
1 Reply
DavidSolari
MVP Regular Contributor

If you make a parameter a table of fields to string values and then make it dependent on the appropriate parameter you can get a pretty functional interface:

DavidSolari_0-1762448366808.pngDavidSolari_1-1762448406869.png