on 09-26-2008 9:39 AM
hi,
i am new to web dynpro java. i want to develop a popup that has to be displayed when i press a button. initially i am getting name from inputfield and i want that name to be displayed in the popup when i run that appli. i expect step by step process to do this.
thanx.
Hi,
This code will solve ur problem.
1)create one value attribute in view context of type string.
ex: value attribute name is fname
2)create on input filed
3)bind this value attribute(fname) to input field.
in input filed properties u find one value field bind this fname to that filed.
4)create on button.
5)in button action u write this code.
IWDControllerInfor controllerInfo=wdControllerAPI.getViewInfo().getViewController();
String dialogText = wdContext.currentContextElement.getFname();
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,controllerInfo.findInEventHandlers("ok"),"ok");
dialog.open();
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
create one event handler (here in example it is: Ok)
IWDConfirmationDialog cWin =wdComponentAPI.getWindowManager().createConfirmationWindow(wdContext.currentContextElement.getName,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"Ok");
cWin.open();
by this code you will have your contextattribute value displayed on the popupwindow and also two buttons like ok. You can also write code in the ok method implementation according to your need.
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,
This code will solve ur problem.
1)create one value attribute in view context of type string.
ex: value attribute name is fname
2)create on input filed
3)bind this value attribute(fname) to input field.
in input filed properties u find one value field bind this fname to that filed.
4)create on button.
5)in button action u write this code.
IWDControllerInfor controllerInfo=wdControllerAPI.getViewInfo().getViewController();
String dialogText = wdContext.currentContextElement.getFname();
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,controllerInfo.findInEventHandlers("ok"),"ok");
Regards,
Sunaina Reddy T
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 |
---|---|
88 | |
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.