Problem with plugins.jasperPluginRMI.relativeReportsDirector

And in the report jrxml i need to do anything? Actually i have this:

$P{SUBREPORT_DIR}+“/qcinst/styles/penta.jrtx”

But i don’t know if i put the extra directory if i have to change this line

I put the extra directory but show me this error:

MSG: Byte data not found at : //qcinst/styles/penta.jrtx

and i don’t know what exactly doing wrong.

And relative directories need to be a complete path or relative?

pentamsi:
And in the report jrxml i need to do anything? Actually i have this:

$P{SUBREPORT_DIR}+“/qcinst/styles/penta.jrtx”

But i don’t know if i put the extra directory if i have to change this line

I put the extra directory but show me this error:

MSG: Byte data not found at : //qcinst/styles/penta.jrtx

and i don’t know what exactly doing wrong.

And relative directories need to be a complete path or relative?

Yes, relative directories need a relative path also.

But i don’t understand the way to the plugin acces the subreports in the server, i define the extra directorys but don’t get anything

pentamsi:
And in the report jrxml i need to do anything? Actually i have this:
$P{SUBREPORT_DIR}+“/qcinst/styles/penta.jrtx”
But i don’t know if i put the extra directory if i have to change this line

You don’t have to change that line necessarily, if the SUBREPORT_DIR parameter is a location relative to the setting you made in the admin page extra directories setting.

pentamsi:
I put the extra directory but show me this error:
MSG: Byte data not found at : //qcinst/styles/penta.jrtx
and i don’t know what exactly doing wrong.

Why is the $P{SUBREPORT_DIR} value that you send to in this case? What kind of a report is this? What are your admin page settings and your relative path client settings (for report and extra directories)?

pentamsi:
And relative directories need to be a complete path or relative?

As said in my previous post, they are relative (to the admin page setting).

Regards,
Andrei

For more info i have this configuration in the server, i say too is a localhost machine, not the production server, is the one who I’m testing the applications, and this is the configuration of the plugin, are anything wrong?

Please open an issue at https://www.servoyforge.net/projects/se … issues/new.
Also specify please the type of report you are using: classic sql, foundset or dataset based.
What you are saying seems to be that external styles are somehow not picked up.

Regards,
Andrei

Okey, thanks for all Andrei, now i proceed to create an issue.

There seems to be an issue in the Servoy JasperPlugin as far as the styles (.jrtx) files are concerned. When using relative paths, the reports engine cannot load the styles files and fails. When using absolute paths (using the deprecated property reportDirectory) everything works fine. I updated the case in the ServoyForge bug tracking system, but am wondering if we need to make a case for this in the standard Servoy Jira?

The corresponding issue, related to style loading, is almost ready, just some finishing touches to be done.
The fix will involve using relative paths - this will also be documented. I will update this topic and the corresponding issue as soon as possible.

Regards,
Andrei

Thanks for all Andrei, I appreciate a lot your work!

The style loading issue on ServoyForge has been closed.
Please read the notes and see how to use the feature on the foundset based reports wiki.

And no need to update the plugin or something?

The plugin code has been updated and this feature will be available in the plugin dropins with the next public release of the plugin.

Regards,
Andrei

Okey, prefect Andrei. Thanks for all the work, I wait to the new version :)

Hi Andrei
Thanks for your help!
I’m seeing that the ticket was created for Servoy version 6.1.2. But, as i wrote, we still use Servoy 5.2… Will also work on this version?
In Servoy5 we have to use the component version 3.3 because the last 4.0 doesn’t work. So you have also worked on this plugin version?
Thanks in advance

Luca

Luca, we have added this now also to the 3.3 branch of the plugin.
That should work for 5.2 then.

Regards,
Andrei

Hi Andrei,
When will an updated version of the plugin be available on the Servoy Forge site?

rossent:
Hi Andrei,
When will an updated version of the plugin be available on the Servoy Forge site?

Hi Rossen,

We hope to get a new release out sometime in the next two weeks.

Regards,
Andrei