Functionality on list 2 individual list component


Above is the image like when select air in left list component and click on green arrow button the data is tranfer to right list component and vice-versa. How this functionality will be executable in ignition point of view.

If you use components that can display datasets like a table, I was able to accomplish like so via a script on the button -

origTableData = self.getSibling("Table")
row = self.getSibling("Table").props.selection.selectedRow
rowData = system.dataset.toPyDataSet(origTableData)[row]
self.getSibling("Table_0") = system.dataset.addRow(self.getSibling("Table_0"), rowData)

It's important they have the same number of column and names.

1 Like