09-17-2014 03:10 AM
Hello there,
I'm trying to utilise the javascript libraries a bit more but the .raiseQueryDialog doesn't seem to be working for me, in that it's not firing the callback function I pass as a parameter. Am i doing something wrong or is this a bug?
I've tried using console.log inside the function, and removing any arguments from it too, but to no avail: the query dialog pops up fine but then, nothing...
var fn = "function (ans) {if (ans) { invPrompt(); }}"
Sage.UI.Dialogs.raiseQueryDialog("Request", "Would you like to Email or Download the Document?", fn, "Download", "Email")
Thanks!
09-17-2014 11:22 AM
Hi Nathan,
You are passing a string and not a function. Please try the following:
var fn = function(ans) { if (ans) { invPrompt(); } }; Sage.UI.Dialogs.raiseQueryDialog("Request", "Would you like to Email or Download the Document?", fn, "Download", "Email");
Thanks
Mike