Hey everyone,
Trying to get a simple dashboard set up for us to be able to scan in bar codes and run queries based on those barcodes scanned. I want to store all my scanned items into a table then use a power table to display the queries based on every barcode scanned in. Currently I am having troubles with getting the first table to update based on a text field. Code is functioning but not updating the table. Any help?
table = event.source.parent.getComponent('inputTable').data
inputData = event.source.text
dataList = []
updatedTable = ''
#tableData.append(inputData)
if event.keyCode == event.VK_ENTER:
#system.gui.messageBox("Test")
if inputData != '':
dataList.append(inputData)
updatedTable = system.dataset.addRow(table, dataList)
table = updatedTable
print dataList
The print is just a way to know that when I press enter that something is happening.
Thanks friends.