on 09-09-2008 9:19 PM
Hi
i've created a popup like written in several threads, but i miss the standard window CLOSE ("X)" for closing this popup? Can i activate that? I want to have it beside the "minimize" "maximize" functionality!?
Thx
This functionality is available in version 7.1.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is the type of your window (Modal or NonModal)?
For NonModal Window, you can use standard "X", "Minimize" and "Maximize" buttons.
If it is Modal Window, I don't think it is possible to have standard Close, Minimize and Maximize buttons. But you can have work around for this.
Create a context attribute (windowInstance) with property
type com.sap.tc.webdynpro.services.session.api.IWDWindow
Store the popup window instance in windowInstance
E.g.
IWDWindowInfo windowInfo =
(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("PopupWin");
//create the Window
IWDWindow window =
wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
//show the window
window.show();
//save window instance in context
wdContext.currentContextElement().setWindowInstance(window);
Then wherever you want you can access the instance.
Create Close button in he pop up view and in the implementation of action of close button.
//get the instance
IWDWindow window = wdContext.currentPopupElement().getWindowInstance();
// close the window
window.destroyInstance();
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
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.