- stop execution of event when save failed
This commit is contained in:
parent
34067c61ae
commit
bca1043d49
|
@ -1511,7 +1511,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
onSave(false);
|
if (!onSave(false))
|
||||||
|
return;
|
||||||
//
|
//
|
||||||
int table_ID = curTab.getAD_Table_ID();
|
int table_ID = curTab.getAD_Table_ID();
|
||||||
int record_ID = curTab.getRecord_ID();
|
int record_ID = curTab.getRecord_ID();
|
||||||
|
@ -1542,7 +1543,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
onSave(false);
|
if (!onSave(false))
|
||||||
|
return;
|
||||||
|
|
||||||
// Query
|
// Query
|
||||||
MQuery query = new MQuery(curTab.getTableName());
|
MQuery query = new MQuery(curTab.getTableName());
|
||||||
|
@ -1704,7 +1706,10 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
// save first ---------------
|
// save first ---------------
|
||||||
|
|
||||||
if (curTab.needSave(true, false))
|
if (curTab.needSave(true, false))
|
||||||
onSave();
|
{
|
||||||
|
if (!onSave(false))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int table_ID = curTab.getAD_Table_ID();
|
int table_ID = curTab.getAD_Table_ID();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue