cancel
Showing results for 
Search instead for 
Did you mean: 

IWDWindow object query

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Rohit,

I suspected that there would be no way to move the window when created in the way I do.

I hadn't though to create a new application for the window and to open that as an external window though, it's a nice tip.

Thanks again,

Patrick.

Former Member
0 Kudos

Hi,

Another question about this.

From my main application how will I get the URL for the application that I want to open as an external window?

I'm looking at the WDURLGenerator API just now but I'm not having much luck.

Any help with it will be greatly appreciated.

Regards,

Patrick.

Former Member
0 Kudos

Actually, it is possible to create custom widget (with left / right / up / down Link2Action controls) right in pop-in view and emulate such behavior, i.e. handle onAction of link and call setWindowPosition with necessary value.

VS

Former Member
0 Kudos

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.

Former Member
0 Kudos

You might open an OSS message for the missing functionality (moving + resizing of modal popups). That might increase the probability that it makes it into some NW04 SP. I know that this feature is on the list for >NW04.

Armin

Former Member
0 Kudos

Thanks for the info Armin, I'll discuss it with the others here.

Best regards,

Patrick.

Answers (0)