cancel
Showing results for 
Search instead for 
Did you mean: 

close button in popup

Former Member
0 Kudos

hi,

how can i add button in popup window to close it? and i also want to display the value of element mapped to that window. i am new to web dynpro.

thanx...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If you want a popup to have options save or exit then

you need to have two event handlers

1) Create two event handlers Ok,close. Under methods tap select eventhandler radio button.

2)In action button you write the following code

IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();

IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Exit, Want to Proceed?", cntrl_info.findInEventHandlers("cancel"),"Cancel");

confirm.addChoice(cntrl_info.findInEventHandlers"ok"),"Confirm");

confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);

confirm.show();

3) In "ok" method in implementation you write your code to save

--appreciate needfull answer with points before closing the thread

Regards

Raghu

Former Member
0 Kudos

hi!

If you no longer need the dialog box, you close it using destroyInstance().

This allows you to reuse the InterfaceView: for example, in another dialog box or

in a view in which this InterfaceViewis embedded.

If you use hide(), the dialog box is hidden and the InterfaceView is no longer

visible. You can reopen the dialog box using show(). However, you cannot

embed the InterfaceView in another view or in another dialog box.

thanks

vishal

former_member185029
Active Contributor
0 Kudos