callTrigger('startWaitingModeTrigger') resultBlock.processRollback() resultBlock.initQuery() if str(searchBlock.nameEntry): resultBlock.nameEntry = str(searchBlock.nameEntry)+'%' resultBlock.processQuery() callTrigger('endWaitingModeTrigger') isOk= 1 message= '' # mandatory fields if not str(editBlock.nameEntry): message+= 'Debe ingresar un nombre\n' isOk= 0 if not str(editBlock.rateEntry): message+= 'Debe seleccionar una Cotización\n' isOk= 0 if isOk: editBlock.commit() else: form.genericBox (message+'Los datos no han sido grabados', ['Aceptar']) import hack hack.deleteCurrentRecord(editBlock) import hack hack.rollback(editBlock) import hack hack.confirmPageChanges(self, 'commitTrigger', editBlock) editBlock.processRollback() if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): editBlock.initQuery() editBlock.idEntry = ("%s" % resultBlock.idREntry) editBlock.processQuery()