Updating the table source of an ArcGIS table frame layout element

513
3
Jump to solution
07-18-2022 01:36 PM
BrentLanford
New Contributor

Hello all,

Is there a way to re-connect the data source for an ArcGIS Pro table frame using Python code? The script I am using deletes the connection and I would like to re-establish that connection (later in the script) so that my layout (see below) displays my table statistics. 

Screenshot 2022-07-18 163502.png

I'm a novice at Python programming. Any suggestions would be helpful.

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

I haven't done a table frame before, but looking at the arcpy.mp module and Table class, there is an updateConnectionProperties method that looks promising. Maybe you can just update connections instead of deleting (and breaking) them?

table-class 

View solution in original post

0 Kudos
3 Replies
by Anonymous User
Not applicable

I haven't done a table frame before, but looking at the arcpy.mp module and Table class, there is an updateConnectionProperties method that looks promising. Maybe you can just update connections instead of deleting (and breaking) them?

table-class 

0 Kudos
BrentLanford
New Contributor

Thanks. I think this is the solution to my problem!

0 Kudos
VíctorAE
New Contributor II

I have the same problem, I can't set a table frame's source to a new table generated from scratch using a python script. Is it possible?

0 Kudos