I cannot figure out if it is possible to have items able to be dragged around in a list or table in Vision.
I would like the user to be able to change the order of a list by dragging the items to their desired order.
Please refer to ‘Single Listbox’ example at this link:
I think you might need to use the
Vision Power Table to have drag and drop.
A power table is your best bet; there’s a recent post by
@samngeru that looks like it’s a lot of what you’re looking for:
This allows a single row or multiple rows to be moved between the same table. Seems to work with multiple and single interval selection mode. Sorry for the list comprehensions. The try and except block are needed because of indexing issues when moving rows to the bottom of a dataset.
data = self.data
allRows = [[rowData.getValueAt(rowNdx, colNdx) for colNdx in range(rowData.columnCount)] for rowNdx in range(rowData.rowCount)]
self.data = system.dataset.deleteRows(self.data,rows)
Interesting OK. Thank you
@PGriffith and @Kevin.Herron. You are my rocks.