Jump to content

Is it possible to programmatically set the ExternalName of a calculated column


Andrew H

Recommended Posts

Hello there,

Is it possible to programmatically set the ExternalName property of a calcualted column

For example, I was trying this in a python script but it threw an error:

col=ActivedataTable.Columns["Selected Column"]

ActivedataTable.Columns[col.Name].Properties["ExternalName"] = "Reference Name"

#where "ActivedataTable" is a script parameter that references a data table.

Since calculated columns by default don't have an ExternalName property populated, I was hoping there was some way to set the ExternalName.

I need this in order to have another script dynamically update the column headers in a table visualization. The "Reference Name" will allow me to select the same column while changing its display name.

Would appreciate your help!

- Andrew

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...