Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOD] Allow ConnectionExpression as DataSource for Subreports #80

Open
wants to merge 1 commit into
base: 11.0
Choose a base branch
from

Conversation

Maartincm
Copy link
Contributor

Something like this:

<subreport>
	<reportElement x="255" y="40" width="300" height="20">
		<printWhenExpression><![CDATA[$F{Invoice_line_tax} != "N/A"]]></printWhenExpression>
	</reportElement>
	<subreportParameter name="IDS">
		<subreportParameterExpression><![CDATA[$F{Invoice_id}]]></subreportParameterExpression>
	</subreportParameter>
	<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
	<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "invoice_v11_tax_subreport.jasper"]]></subreportExpression>
</subreport>

was giving the following error:

<Fault 0: 'Failed to invoke method execute in class com.nantic.jasperreports.JasperServer: Resource not found at: /...../custom_reports/invoice_v11_tax_subreport.jasper
.'>

This PR aims to fix that.

@maiolif
Copy link

maiolif commented Jan 25, 2019 via email

@Maartincm
Copy link
Contributor Author

Ok I will test it further. It was working for me too but not every time.

@maiolif
Copy link

maiolif commented Jan 25, 2019 via email

@JayVora-SerpentCS
Copy link
Owner

@hiren-serpentcs Please take a look.

@hiren-serpentcs
Copy link
Collaborator

@JayVora-SerpentCS sure will check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants