on 05-14-2008 3:58 PM
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.
Hi,
Create a seperate application which contains the pdf view.
use the URL of this application as the parameter to the externalwindow.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.