I'm trying to run this on a CellEdited but it does not set the value of self.data to the query below. the query is correct i test it outside. but self.data does not change, can anyone tell me why?
def onCellEdited(self, rowIndex, colIndex, colName, oldValue, newValue):
orderid = self.parent.OrderID
invoiceid = self.parent.ID
ordertype = self.parent.ordertype
locationfrom = self.parent.locationfrom
if colName == 'id' and newValue != oldValue:
if newValue == 0:
print "entro a borrar"
system.db.runNamedQuery("Orders/DeleteInvoiceTempPallet", {"PALLET_ID": old Value, "ORDER_ID": invoiceid, "ORDER_TYPE": ordertype})
self.data = system.db.runNamedQuery("Orders/SelectCustomInvoiceTempPallet", {"ORDER_ID": invoiceid, "LOCATION_FROM": locationfrom})