cancel
Showing results for 
Search instead for 
Did you mean: 

create a popup

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Please look into the below threads :

Regards,

Prakash.

Edited by: Surya Prakash Veera on Sep 26, 2008 10:52 AM

Edited by: Surya Prakash Veera on Sep 26, 2008 10:54 AM