Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Drill-Through to *.rptdesign file does not work in RCP embedded WebViewer
FrankA
Hi all,
i have created a report in which i have hyperlinks within crosstab cells with the following 'parameters':
- drill throught
- target design 'abc.rptdesign'
- is located in the same directory as the top report design
- open in new window
I have 3 use models of the top report:
1. in the BIRT designer Preview action
2. in a RCP embedded WebViewer, rendered via URL
- i tried rendering as 'run' or 'frameset' both don;t work
3. on a Tomcat server with the example BIRT servlet
The drill through work on use model 1 and 3, but when clicking on the hyperlink in use model 2 nothing happens. I looking into the RCP application logs, no error or message.
Does the drill through work in use model 2?
Any help is appreciated ... thanks!
Bye
Frank
Find more posts tagged with
Comments
JasonW
Frank,
Do you mean the webviewer plugin in an RCP Application? I just tried this with BIRT 2.3.2 and it worked fine.
Jason
FrankA
Hi Jason,
yes, that's what i ment. May be its the way we startup the WebViewer browser from our RCP application.
Can you send me the java code that you used to test it?
P.S.: We also use BIRT 2.3.2 ..
Thanks,
Frank
JasonW
Take a look at this dev share item<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/deploying-birt-reports/792-eclipsecon-2009-integrating-birt/#description'>EclipseCon
2009 Integrating BIRT - Tutorials - BIRT Exchange</a><br />
<br />
In it are three rcp examples, of which one shows the viewer plugin.<br />
<br />
Jason
FrankA
Hello Jason,
thanks for the example. I did run it and then i realized that i missed to send one information.
I would like the drill-through report to open in a 'New Frame' and that does not seem to be possible in the RCP application, is that correct?
At least it does not work in your example and in my RCP application. Do you think its possible?
Thanks a lot,
Frank
JasonW
Frank,
Wheter it opens in a new window depends on the master report.
In my example I display the first report in the SWT Browser, and when the user clicks a link in the report it can either open in a new window or in the same. Which one it uses is based on the target in the hyperlink builder for the report.
<property name="targetWindow">_blank</property>
or
<property name="targetWindow">_self</property>
Now if you want the original report to be in a new window just use
WebViewer.display(reportName , WebViewer.HTML, true);
instead of
WebViewer.display(reportName, browser, myparms);
Jason
FrankA
Thanks Jason,
i tested both options in the master plan but it works only when i declare to open the drill-through report in the same window.
If i declare to open it in a new window nothing happens in the RCP application, but it works in the BIRT servlet environment on the web browser.
Can you send me master and drill-through report that you use with the 'open-in-new-window' setup in the master report? ... may be something is broken with my reports ...
Thanks,
Frank
JasonW
Example attached:
JasonW
try again. Two reports attached
FrankA
Hi Jason,
in my environment, this report is not running with the RCP example that you did send me earlier.
I attach a screenshot, you see the master report being rendered and the plugin versions i use. When i click on the first column hyperlink nothing happens in the RCP application. Just like with my own report it all works fine in the Report Designer.
Do you think i can generate debug information, so we can isolate the issue?
Otherwise i am a bit stucked right now :-(
Thanks for helping,
Frank
JasonW
Frank,
What browser is set as your default browser?
In the desiger look at Window->preferences->general->Web Browser
Also look at the Window->preferences->Report Design->preview and see if the always use external broswers is checked. You may have to set these preferences in your app. I did not have to, to get it to work but I am using XP.
You can set the log level and file location in the viewer plugins web.xml.
But I doubt this error will show in the log.
Also if you have not checked out the source for the viewer it may be a good idea to do this to debug it. Look at:
BrowserAccessor.getPreviewBrowser( useExternal ).displayURL( root )
The BrowserAccessor class contains the code to launch an external browser.
Jason