on 01-12-2006 10:38 AM
Hello all,
I have a WD app where I display tables of information to the user. One column of a specific table holds a button that the user may click to open a popup window displaying further details about the data contained for that table row.
This popup window is achieved with the following code;
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("RegistrationDetails");
IWDWindow win = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
win.setWindowPosition(400, 80);
win.setWindowSize(200, 100);
win.setTitle(wdComponentAPI.getTextAccessor().getText("RegistrationDetails"));
win.open();
The window cannot be moved around the screen by the user. Is there any way of allowing the user grab and move the window? I'm using SP14.
I see that there is a createNonModalExternalWindow() method but this takes a URL as parm and not an IWDWindowInfo object, can I calculate a URL for the IWDWindow object and use this method?
Regards,
Patrick.
Hi Patrick,
you cant move the modal window
Create an application using the window and use the url for creating external window
wdComponentAPI.getComponent().getWindowManager().createExternalWindow();
hope this helps you
Regards
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I got the URL and I'm opening the window now;
try{
str = WDURLGenerator.getApplicationURL(wdComponentAPI.getDeployableObjectPart().getDeployableObjectName(), "RegistrationDetails");
}catch(WDURLException e){
}
The problem now is that the window isn't displaying the data that it did when it was a modal window opened and displayed within a single application (data passed through the component controller).
Thanks for the tip Valery.
I guess I'll just tell the boss that it's not really worth the effort. The user can press the 'Exit' button on the modal window if he/she wants to see what's underneath it. It's further details of a specific row in a table anyhoos, to me the use case is to open it if you want, read what it says and then close it.... open another one if you want. Being able to move the window isn't really important as far as I can see.
Thanks for the input folks,
Patrick.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.