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

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

(1) Answer

Login