Report fired from Servoy does not include Resource Bundle

Hi again,

and another problem ;)

I am Using:
iReport 3.52
Servoy 4.13
JasperPlugin for Servoy 3.0.0

I am trying to fire a Jasper Report from Servoy with the JasperPlugin.

First Problem:
The Report i am trying to migrate and fire via Servoy gives me an exception:

Can't find bundle for base name company_companyprofiles, locale de_DE
	at C:\PATH\projektlizenznehmer_methods.js:102 (meth_rpt_firmenprofile)

method looks like this:

function meth_rpt_firmenprofile()
{

	var params = new java.util.HashMap();
	var datumsinfo2 = new Date();
	params.put('projektid',forms.projektlizenznehmer.projektid);
	plugins.jasperPluginRMI.jasperReport(controller.getServerName(), "company_companyprofiles.jasper", null,  "viewer", params);
	var thePressedButton = plugins.dialogs.showInfoDialog('Report', 'Die PDF-Datei ist zu finden unter c:\\reports\\Firmenprofile'+ projektid +'date'+ datumsinfo2.getDate()+'_' + (datumsinfo2.getMonth()+1) +'_'+ datumsinfo2.getFullYear()+'_'+ datumsinfo2.getHours() + '_' + datumsinfo2.getMinutes() +'.pdf','OK');

}

But if i run the Report in iReport, everything works fine.

So i created a really simple Report, with an I18N *.properties File as well.
The Properties File looks like this:

Identifier=Value

Now here is the courious thing.
If i run the ServoyTest Report, the ServoyTest.properties File seems to be found, but it doesnt take effect…

Means:
In iReport the filled Report shows

Value
``` but when fired from Servoy, it shows: 

!Identifier!


Can anybody help me out of this trap?

Thanks in advance

GevatterTod

Ok. Right now I understood, that the Plugin feeds the Report with Values from the I18N Table.
But i dont want that ;)
I want to use the “static” I18N properties File, i used in iReport. Does anybody have a solution to that? And I don’t mean putting all the Information provided by the properties file into the I18N Table…

So long

GevatterTod

Please discuss Jasper Report related questions on the Servoy-Jasper reports discussion group.

As for your question: you cannot specify a custom resource bundle when calling the report from Servoy. If you want that, you have to alter the plugin or register a feature request on the project site of the Servoy Jasper Reports plugin.

Paul

Thanks for the reply.
This does definetly answer my question. Thanks a lot.

For the future I will post Jasper related topics in the according forum.
Sorry for that.

Greets

GevatterTod

Update:

If you want to use your i18N table within the Subreports of JasperReport you have to pass the Parameter:
REPORT_RESOURCE_BUNDLE
through to all of your subreports. Otherwise you’ll just get !identifier! in your report.

I hope this helps somebody ;)

Grettz

GevatterTod