Line in UI Actions having differing results in two UI Actions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 08:31 AM
Hello
I noticed this line in the "Reset To Draft" UI Action on the Demand Form:
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
This line is located in a callback function for a GlideAjax. In my case, we do not need a GlideAjax but I still need to set the UI action as Client as I need the user to confirm an action before they proceed (in this case, it is to permanently remove a Demand from the list).
But when I attempt to use this line in a function called by the onClick, it errors out. This is confirmed by putting in a few alert lines on the onClick function.
Supposedly, I was supposed to use this line:
var dialogClass = new GlideDialogWindow ('<ui_page>') but this does not work with mobile applications which is why the first line was used.
Can someone tell me why the first line isn't working for anything outside the Reset to Draft UI Action?
0 REPLIES 0