cancel
Showing results for 
Search instead for 
Did you mean: 

How to use popups to display a table on a search condition?

Former Member
0 Kudos

Hi,

By clicking on the search based on the search criteria its displaying table for me in the next view.

Now i need that table to be displayed on a popup window.

Help me out with how create to popup and what i have to do, to popup a table.

Thanks.

Regards,

Suresh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try these steps:

1. Create a new View for the Table UI element- depends on your requirement

2. Create a new Window

3.Embed this newly created view inside your newly created Window.

4. have a context variable 'windowInstance' created of type com.sap.tc.webdynpro.services.session.api.IWDWindow in

5.Now in your First View,on Action method, write the following code:

IWDWindowInfo

wininfo=(IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows(

"WindowNameNewlyCreated");

IWDWindow

win=wdComponentAPI.getWindowManager().createWindow(wininfo,true);

//creating a window

win.setWindowPosition(405,110);

//setting position on screen for window

win.open();//opening the window

wdContext.currentPopUpElement().setWindowInstance(win);//saving

the instance of created window

-np

Former Member
0 Kudos

HI

for examplw say you need to display Name and ID in seperate window create an iview NameID

then in your main iview onAction method write the follwoing code:

IWDWindowInfo

wininfo=(IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows(

"WinNameID");

IWDWindow

win=wdComponentAPI.getWindowManager().createWindow(wininfo,true);//crea

ting a window

win.setWindowPosition(405,110);//setting

position on screen for window

win.open();//opening the window

wdContext.currentPopUpElement().setWindowInstance(win);//saving

the instance of created window

write your transaction in your NameID iview

May it solve your purpose

Former Member
0 Kudos

Hi Suresh

Try this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Tutorial for Dialog Boxes</a>

Regards

Chaitanya.A