Skip to Content
0
Former Member
Aug 30, 2007 at 06:25 AM

parameter passing

47 Views

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();