on 06-14-2005 4:03 PM
I have created a IWDWindow instance that opens when a user selects a particular menu action item. I understand how to position the window when it appears, but how do you allow the user to be able to move the window around by dragging it with the mouse? Any help on this would be appreciated.
Dora,
There is no way to move pop-over window via mouse dragging. As a workaround you may save a reference to window in component controller, provide window's view with 4 buttons (up/bottom/left/right) and change window coordinates via buttons action.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
There is a method of WindowManager called createExternalWindow which requires you to pass a string and that should be a URL.
Something like
wdComponentAPI.getComponent().getWindowManager().createExternalWindow(String 1,String 2,true);
This will open in a new browser and you can move the window. But without passing the URL it is not possible in the above case.
regards
ravi
I think I confused people when I gave the External Window example. I am trying to figure out if there is a way to move around an INTERNAL window after it is displayed (it will NOT be an external window but I want to know if it is possible to have a window that will behave similarly in that it will be able to be moved out of the way of the main window). Or is there a type of window "similar to" an External Window (since this type is able to be moved around), but that doesn't point to a URL?
Hi Dora,
You can have two types of windows :-
1) External Window(through URL)
2) Child Window(Pop up)
Through external window you cannot pass values whereas you can pass and retrieve values using the Child Window.
This is how you create a child window.
Create a view and embed it in a window say AddressbookWindow.
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI
.getComponentInfo()
.findInWindows("AddressbookWindow");
IWDWindow window = wdComponentAPI.getWindowManager()
.createWindow( windowInfo,
window.setWindowPosition(300, 150);
window.open();
wdContext.currentPopupElement().setWindowInstance(window);
However the modal window is not supported till now in WebDynpro.
For further information you can refer the article "Dialog boxes in WebDynpro apllication"
Regards
Noufal
Message was edited by: Noufal Kareem
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.