on 09-26-2008 11:18 AM
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.