Hi, First, it is unclear why you would define "rows = dt << get selected rows" and not use it in the subsequent script. Second, have you considered the much simpler formula: "Selected ()" which returns 1 if selected and 0 if not (i.e. set the FlagColumn formula as: "Selected ()"). Of note, like all formulas, it is evaluated automatically by default therefore you may need to toggle to Suppress Eval state in the formula dialog to retain a certain state of selection. Also, if you need to only capture the selection state once, you may add the formula, apply the change, and delete the formula which will keep a stable record of what was selected upon running the formula.
... View more