HI Patrick,
You can try call ParameterAccessor.urlReportPathPolicy = POLICY_ALL in your code. This need be done after the viewer has been initialized.
BTW It's better to post your questions on BIRT-Exchange.org. You may get more quick answers there.
Best Regards,
Zhiqiang Qian
Actuate Corporation - Shanghai R&D Center
( : (86)21-58826388
* : zqian@xxxxxxxxxxx
From: birt-dev-bounces@xxxxxxxxxxx [mailto:birt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schmitt, Patrick
Sent: Friday, July 08, 2011 3:32 PM
To: birt-dev@xxxxxxxxxxx
Subject: [birt-dev] Webviewer inside RCP Application not working with Indigo
I have an Eclipse RCP application, just upgraded to Eclipse Indigo.
Now I noticed the BIRT webviewer is not working anymore.
I also found out the problem:
Due to a bugfix (https://bugs.eclipse.org/bugs/show_bug.cgi?id=336767) the method isValidFilePath returns false.
// check and aply url report path policy
if ( !POLICY_ALL.equalsIgnoreCase( urlReportPathPolicy ) )
This statement inside the method is true, because urlReportPathPolicy is null.
I use following code to run the webviewer:
Browser browser = new Browser(parent, SWT.NONE);
Bundle bundle = Activator.getDefault().getBundle();
URL url = "">
URL installURL = bundle.getEntry( "/" );
// Settings for the report viewer
HashMap<String,String> myparms = new HashMap<String,String> ();
myparms.put("SERVLET_NAME_KEY", "frameset");
myparms.put("FORMAT_KEY", "html");
try
{
url = "" URL(installURL, "/bchistory_report_rcp.rptdesign");
}
catch (MalformedURLException e)
{
ModelEditorErrorHandler.showException(e, Activator.PLUGIN_ID);
}
// bugfix, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=291551
browser.addOpenWindowListener(new OpenWindowListener()
{
public void open(WindowEvent event)
{
new
org.eclipse.birt.report.viewer.browsers.embedded.EmbeddedBrowser(event,
Display.getCurrent().getActiveShell());
}
});
if(new BCHistoryReport().getBCHistoryData().size() > 0)
{
WebViewer.display(url.toString(), browser, myparms);
}
I did not find a solution to set urlReportPathPolicy from my code. Can anybody give me a hint please ?
Sincerly Patrick
Also posted in the newgroups without success: