Products | Versions |
---|---|
Spotfire Developer | 7.5 and Higher |
If there is a requirement to access a Data Table or Marking that belongs to an active visualization or is active then write a sample script like the one below:
dataTable = Document.ActiveDataTableReferenceIt is recommended to use a specified marking/table rather than using active unless there is a good reason for wanting the active table. You may use the DefaultTable/Marking or the marking /table used for a specific visualization. You can use the variable as used in the code shown below where "visual" is a script parameter of the type Visualization:
Example:
marking.SetSelection(RowSelection(rowsToMark), dataTable)Instead of:
Document.ActiveMarkingSelectionReference.SetSelection(RowSelection(rowsToMark), dataTable)