Hi,
We are in process of developing an popup when user clicks on action buttons(finish/forward/reject) of inbox task, Popup modal window
asking "do you want to continue?". For which we are trying to use Prompt component.
I am using the following code in TaskMgrContainer:
public void onaction(ActionControl actionControl, ArgumentList args){
this.actionControl = actionControl;
this.args = args;
//Read your custom strings from NLS properties file
args.add(Prompt.ARG_TITLE, getString("MSG_CONFIRM_DOC_TITLE"));
args.add(Prompt.ARG_MESSAGE, getString("MSG_CONFIRM_DOC_MESSAGE"));
args.add(Prompt.ARG_BUTTON, new String[]{Prompt.YES, Prompt.NO});
//args.add(Prompt.MODAL_POPUP_WINDOW_SIZE,Prompt.DEFAULT_MODAL_POPUP_WINDOW_SIZE);
args.add(Prompt.MODAL_POPUP_ENABLED,Boolean.TRUE.toString());
args.add(Prompt.MODAL_POPUP_WINDOW_DIMENSION,new String[]{"200","200"});
setComponentNested("prompt", args, getContext(), new FormActionReturnListener(this, "onReturnFromPromptInput"));
}
public void onReturnFromPromptInput(Form form, Map map)
{
// check whether the confirmation prompt has returned
String strButton = (String)map.get(Prompt.RTN_BUTTON);
if (strButton != null && strButton.equals(Prompt.YES) )
{
//If confirmed, allow super event handler to execute
//If not, do nothing
super.onaction(actionControl, args);
}
}
But here prompt component is displayed as new page in same window. Please let me know how to open a window in
pop up mode just like message box.
We are using Webtop 6.5
Best Regards.