on 08-30-2007 7:25 AM
Hi All,
I need to open a confirmation dialog with user.
In the simplest style, a confirm event is triggered.
I've now change the event somewhat and it needs to takes in some parameters.
So, when opening up the dialog, how do one pass in the parameters in this case.
I've my dialog opening function listed below.
Thanks,
yung siu wai
public void openDialogWindow( com.sap.tc.webdynpro.progmodel.repository.IWDControllerInfo controllerInfo, java.lang.String dialogText, java.lang.String confirmEventName, java.lang.String confirmText, java.lang.String abortEventName, java.lang.String abortText )
{
//@@begin openDialogWindow()
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow( dialogText, controllerInfo.findInEventHandlers(confirmEventName),confirmText);
if (abortEventName != null) dialog.addChoice(controllerInfo.findInEventHandlers(abortEventName), abortText);
dialog.show();
Hi
Try this
IWDEventHandlerInfo handler = wdComponentAPI.getControllerInfo().findInEventHandlers("evtHandler");
handler.setAttributeValue("param_name",value);
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow( dialogText,handler ,confirmText);
if (abortEventName != null) dialog.addChoice(controllerInfo.findInEventHandlers(abortEventName), abortText);
dialog.show();
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! Siu,
From your post it's not clear, what exactly you wanted to do with the Confirmation Dialog Box?Could you please give us your requirement ?
Regards,
Mithileshwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mithileshwar ,
Ususally with a dialog you attach a handler to a button and there is no where you specify parameters for that handler.
So far so good as all my handlers take in no parameters.
Now that I've one handler with two parameters, so do you know where in my existing function can I add these two parameters to my handler.
Thanks and Regards,
Yung siu wai
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.