cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a view which contain interactive form in an external window

Former Member
0 Kudos

Anyone know how to display a view which contain interactive form in an external window?

I managed to display the view in an internal window with the following code:

IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PdfReportWin");

IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);

For external window, I tried this method : wdComponentAPI.getWindowManager().createExternalWindow(String URL, String title, boolean modal) but there are no parameter for view name?

Maybe this is not the correct way, really appreaciate if anyone can help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a seperate application which contains the pdf view.

use the URL of this application as the parameter to the externalwindow.

Regards

Ayyapparaj

Former Member
0 Kudos

hi,

for this

1. make a view which have Interacive form bind data source and pdf source property .

2.make another view where we have one button for showing other window which have interactive form.

3.now make a window named as second where we embedd the view which have interactive form.

4. write a code for show this window in action of first view button action.

the code is

IWDWindowManager winMgr= wdThis.wdGetAPI().getComponent().getWindowManager();

IWDWindowInfo winInfo=wdThis.wdGetAPI().getComponent().getComponentInfo().

findInWindows("second");

IWDWindow changeFontWindow=winMgr.createModalWindow(winInfo);

changeFontWindow.setWindowPosition(WDWindowPos.CENTER);

changeFontWindow.setTitle("Title");

changeFontWindow.show();

Regards

Trilochan

Former Member
0 Kudos

Hi,

U need to the following

1.Create another window

2.Create a view in it tat contains Interacive form element.

3. call this window dynamically thru the first window by creating a context element of IWDWindow type

The code may help:

IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("SearchEmpwind");

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);

window.setWindowPosition(WDWindowPos.CENTER);

window.setWindowSize(400, 250);

window.open();

wdContext.currentContextElement().setEmpSearchWind(window);

Regards

Ishita

Former Member
0 Kudos

Hi Ayyapparaj,

If I create another application which contain the pdf report view so how can I pass the data which I store in the context to this application?

Former Member
0 Kudos

Hi Trilochan Bagauli,

What you have proposed is what I currentlly using but I want to display the pdf report in the external window not the modal window (internal window)