on 09-24-2007 8:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.