GlideDialogWindow.get().destroy() is not working in UI Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2019 11:04 PM
Hi Team
am not able destroy ui page in my requirement am using this function to destroy ui page"GlideDialogWindow.get().destroy();" but is working remaining places in my function only it is not working;
am using UI page1 in UI Action
in UI page1 i have button called validated it will open another page UI Page2.
UI Page2 i have two buttons Yes or No
if i click no it has close UI Page2 and it has to open another UI Page3
It is opening UI Page3 but UI Page2 is not closing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2019 02:29 AM
you have to create a different function for cancel and ok buttons
example:
function cancel() {
var c = gel('cancelled');
c.value = "true";
GlideDialogWindow.get().destroy();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2019 02:38 AM
Hi Tejaswi
var c = gel('cancelled')
cancelled is id of button right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2019 02:45 AM
No luck i tried this scenario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2019 11:46 PM
hi Madan,
<g:ui_form>
<input type="hidden" id="cancelled" name="cancelled" value="false"/>
<tr id="dialogbuttons">
<td colspan="3" align="right" style="padding-right:10px;">
<g:dialog_buttons_ok_cancel ok="return actionOK();" cancel="cancel();"/>
</td>
</tr>
this will be your UI page script. hope this should work