on 05-08-2007 12:20 PM
Hi,
I have created a popup window using modal windowinfo.
Popup appears properly, however the window in background of popup is still accessible. The links in background window can be accessed.
I checked with the properties of modal window but could not found any property which restricts control to the popup only. Would appreciate some pointer.
Thanks and Regards,
Sanjeev
Hi,
<b>1..</b>If you intend to display only a confirmatory popup window, then use the code:
(If u want to show a popup confirming sending of email)
String dialogText= "Do u want to send email?";
IWDConfirmationDialog dialog = wdThis.wdGetValueHelp_ApplnController().wdGetAPI().getWindowManager() .createConfirmationWindow(dialogText,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("EH_Yes"),"ok");
dialog.addChoice(wdThis.wdGetAPI().getViewInfo().
getViewController().findInEventHandlers("EH_No"), "NO");
dialog.open();
<i>Here, EH_Yes & EH_No are two event handlers</i> that you need to create.
You can add further functionalities by writing code in these two event handlers, such as closing the window, updating table, etc.
<b>2..</b>But if you want to display popup windows which contain context attributes, UI elements, etc, then you need to embed that view into a window adn then call that window using th following Code:
IWDWindowInfo windowinfo = wdComponentAPI.getComponentInfo().findInWindows("<name of your window>");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowinfo,true);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(290,300);
wdContext.currentContextElement().setCtx_va_win(window);
window.open();
<i>here ctx_va_win is a context attribute of typetype: com.sap.tc.webdynpro.services.session.api.IWDWindow</i>
<b>In both cases, the window behind will NOT BE ACCESSIBLE
I am using both these pieces of code, and can say for sure that the background window is NOT ACCESSIBLE</b>
I hope this solves your problem
Regards,
Hanoz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjeev,
I use this code and in my case I am not able to access the background window.
IWDWindowInfo detailWindowInfo = wdComponentAPI.getComponentInfo().findInWindows("DetailViewWindow");
detailWindow = wdComponentAPI.getWindowManager().createModalWindow(detailWindowInfo);
detailWindow.setTitle("Details of "+wdContext.currentTableDataSourceElement().getLoginID());
detailWindow.setWindowPosition(250, 80);
detailWindow.setWindowSize(300, 300);
detailWindow.show();
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.