Alpha Anywhere v3.5
Version 12.3, Build 2999
MySql56
I have a UX component with a save button.
In the server-side, afterDialogValidate event, I have code that tests for a duplicate entry. If a duplicate is found, the code stops running.
Is there a way from the afterDialogValidate that I can stop the {dialog.Object}.closeContainerWindow(ele);
from running as it throws an error message only went a duplicate is found and the script stops running.
Any help would be greatly appreciated.
Version 12.3, Build 2999
MySql56
I have a UX component with a save button.
Code:
function tempfunction_efc0b94a_7492_4e75_ae32_0d6697cf7343() { {dialog.object}.submit(); } function tempfunction_825a7c61_f25d_4847_9473_028b766dfd50() { //Get a pointer to the parent component object that opened this UX. var po = {dialog.object}.getParentObject(); po.refreshListData('WO'); } function tempfunction_c577e2c1_37b0_42e7_9118_70dea107848b() { var ele = {dialog.Object}.getPointer('BUTTON_SUBMIT'); {dialog.Object}.closeContainerWindow(ele); } A5.executeThisThenThat(tempfunction_efc0b94a_7492_4e75_ae32_0d6697cf7343,tempfunction_825a7c61_f25d_4847_9473_028b766dfd50,tempfunction_c577e2c1_37b0_42e7_9118_70dea107848b);
Code:
if nr = .f. then 'ResultSet returned no records, in this case is a unique record 'update the record 'To edit this action, place insertion point anywhere in the command, then click the 'Action Scripting' button'. ExecuteServerSideAction("Save Data::Save_Submitted_Data_to_Table_s_") else e.javascript = "alert('Oops, W.O. Number has Already Been Used');" end if
from running as it throws an error message only went a duplicate is found and the script stops running.
Any help would be greatly appreciated.
Comment