cancel
Showing results for 
Search instead for 
Did you mean: 

Pop-up window

Former Member
0 Kudos

Hi,

Please let me know how to create a pop-up in java webdynpro application.I need to display the description of the field in a separate pop-up while placing cursor on it.

Thanks,

Kumar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (5)

Answers (5)

Former Member
0 Kudos

Answered

Former Member
0 Kudos

Hi Kumar,

The above mentioned answers are sufficient enough to resolve your problem. If your problem is solved please close this thread.

Regards,

Gaurav

Former Member
0 Kudos

Hi Kumar,

If you actually need to show only the description of the field, when the cursor is placed on the Label or so, Just use the "Tool tip" Property of the UI Element where you can enter the description text rather than taking the pain of creating pop up widow and using events....

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Thanks & Regards

Ramesh

Edited by: Armin Reichert on Apr 15, 2008 6:07 PM

Former Member
0 Kudos

Hi,

Create new window and place the view u want displat in tht window.

on action of click of something, write the code to open tht window as popup.

IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("W_popup");

IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);

window.setWindowPosition(50, 200);

window.open();

//

wdThis.wdGetC_iprchecklistController().wdGetContext().currentVn_popupElement().setVa_windowsinstance(window);

Where W_popup is the window name.

and Va_windowsinstance is the value attribute of type IWDWindow.

Regards,

Suresh

Former Member
0 Kudos

Hi,

Create a view with all the controls you want as part of the popup

Embed this view to a window

Once the above step is done do the following in the action handler



	  IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("EmailWindow");
	  IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
	  //Assignning the window handle to a context variable for later use
	  wdContext.currentContextElement().setWindowHandle(window);
	  window.show();


Use the following code to close the popup window


//This is refered to the context attribute where the window handle is stored
	  IWDWindow window = (IWDWindow)wdContext.currentContextElement().getWindowHandle();
	  window.destroyInstance();

Regards

Ayyapparaj