on 04-28-2008 7:19 AM
Hi,
In my application i have two windows which contain single view. Now i want to call window on button action . So can any one tell me code for that .
Regards,
Gurprit Bhatia
Hi,
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("Popwin");
// get information of window in controller context
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
window.setWindowPosition(WDWindowPos.CENTER);
window.open();
// store information of window in controller context
wdThis.wdGetAbhiappController().wdGetContext().
currentContextElement().setWin(window);
destroy the window
public void destroyModalWindow( )
{
//@@begin destroyModalWindow()
modalWindow.destroyInstance();
//@@end
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
further information related to the pop up window , u can refer this link.
[http://help.sap.com/saphelp_nw04/helpdata/en/75/064640c0e56913e10000000a1550b0/frameset.htm]
thanks and regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
try this code to pop up a window
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("<windowname>");
IWDWindow Window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
Window.setTitle("Cancel");
Window.setWindowPosition(WDWindowPos.CENTER);
Window.open();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
use the below code for pop up windpw
write this code in the onaction of the button.
Which ever Window you wanna open as popup(window with the desired view, say TestWindow), Just code the following in the Method which should open. i,e
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("TestWindow");
window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setTitle("Test Popup Window");
window.setWindowSize(450, 280);
window.setWindowPosition(50, 75);
window.show();
Hope this helps.
thanks and regards
Fistae
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.