/**
*Call
thismethod
tohave
a _javascript_
responsereturned
thatopens
themodal
dialog.
*The
titleof
the dialog
will be what
itwas
when rendered.
*
*@param
context the
current WOContext
*@param
id the
HTMLID of
the AjaxModalDialogto
open
*/
publicstatic
void open(WOContext context, String id) {
AjaxUtils._javascript_Response(openDialogFunctionName(id) +
"();", context);
}
/**
*Call
thismethod
tohave
a _javascript_
responsereturned
thatopens
themodal
dialog.
*The
titleof
the dialog
will be the
passedtitle.
Thisis
usefulif
the script
to
*open
thisdialog
wasrendered
withoutthe
titleor
with an incorrect
title.
*
*@param
context the
current WOContext
*@param
id the
HTMLID of
the AjaxModalDialogto
open
*@param
title the
title for
the AjaxModalDialog
*/
publicstatic
void open(WOContext context, String id, String title) {
AjaxUtils._javascript_Response(openDialogFunctionName(id) +
"(" + AjaxValue._javascript_Escaped(title) +
");", context);
}
Chuck
On 2/19/2014, 3:19 PM, "Roger Perryman" wrote:
Hi.
What is the correct way to open an AjaxModalDialog programmatically after evaluating some criteria? I know that I can call it via _javascript_ using openAMD_<ID>(). But that isn't exactly what I'm looking for. Since I need to evaluate what they have done
first, I guess I would need to update the page in order to trigger the action to open the dialog? It also closes the current window and processes the action binding. I want to be able to present a warning message when the user presses a button/hyperlink (such
as cancel) and there are changes pending. They can then choose to return to the page or continue and discard any changes. I have other similar situations where the user should be alerted to the consequences of their actions and given a chance to correct, ignore
or take another action.
Any help would be appreciated!
Thanks,
Roger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription: