Refresh data table
/Description: Refresh an existing data table.
Assumptions: An optional 'myTable' data table type script parameter.
#Pick one of the following data table reference methods: #myTable = Application.Document.Data.Tables['MyDataTable'] #Name method #myTable = Application.Document.ActiveDataTableReference #Active data table method #myTable = Application.Document.Data.Tables.DefaultTableReference #Default data table method #myTable as a data table type script parameter #Script parameter method if(myTable.IsRefreshable and myTable.NeedsRefresh): myTable.Refresh()