I have 2 UX for user security. Both UX are opened form the same user grid. Both work fine, except:
1. On the add user UX I want to close it after submit.
2. On the edit existing user UX I want to close it after delete & I want to refresh the grid.
#1 I can refresh the grid no problem, but not on #2.
Both 1 & 2 will not close after the submit or delete. I can put the close control on a separate button and that works fine too.
#1 - Add user submit button code:
#2 - Delete button code:
So what's the secret?
1. On the add user UX I want to close it after submit.
2. On the edit existing user UX I want to close it after delete & I want to refresh the grid.
#1 I can refresh the grid no problem, but not on #2.
Both 1 & 2 will not close after the submit or delete. I can put the close control on a separate button and that works fine too.
#1 - Add user submit button code:
Code:
function jsSubmit() {{dialog.object}.submit(); } function jsRefresh() { var po = {dialog.object}.getParentObject(); if(po) { po.refresh(); } } function jsReset() { {dialog.Object}.resetForm(false); } function jsClose() { {dialog.Object}.closeContainerWindow(this); } A5.executeThisThenThat(jsSubmit,jsRefresh,jsReset,jsClose);
Code:
function tempfunction_7303ef67_8cf0_4442_b4db_abe57cb5920e() { var vUser = {dialog.Object}.getValue('USERNAME'); msg = A5.msgBox.show('Delete User','<div style=\'padding:5px\'>Delete ' + vUser + '?</div>','yn',function(vChoice){ if(vChoice=='yes'){ {Dialog.Object}.ajaxCallback('','','xbDeleteUser','',''); } }); } function tempfunction_005cfcbf_1487_458c_826f_2fe33d96d064() { {dialog.Object}.closeContainerWindow(this); } function tempfunction_005bdd44_2a0b_4c2e_bac1_5556c5c0408d() { jsGridRefresh(); } A5.executeThisThenThat(tempfunction_7303ef67_8cf0_4442_b4db_abe57cb5920e,tempfunction_005cfcbf_1487_458c_826f_2fe33d96d064,tempfunction_005bdd44_2a0b_4c2e_bac1_5556c5c0408d);
Comment