Jump to content
Changes to the Jaspersoft community edition download ×

main report is not executing from jasperServer


kunkasurendra

Recommended Posts

I had 3 subreports. I uploaded the three subreport files to JasperServer as jrxml files. They are in the repository folder [root]/reports/subreports.

 

I uploaded the main report also in to the Jasper server repository [root]/reports/subreports.

 

In main report

 

Code:
<parameter name="SUBREPORT_DIR" isForPrompting="true" class="java.lang.String">
<defaultValueExpression ><![CDATA[".\"]]></defaultValueExpression>
</parameter>

 

[".\] may be this is on local system.

 

If i placed the all main and subreports into the server,

 

How can i mention the subreport dir,

and

 

 

Code:
[code]
<subreport isUsingCache="true">
<reportElement x="32"
y="8"
width="678"
height="14"
key="subreport-1"
positionType="Float"
isPrintRepeatedValues="false"
isRemoveLineWhenBlank="true"
isPrintInFirstWholeBand="true"/>
<subreportParameter name="PROJECT_GUID">
<subreportParameterExpression><![CDATA[$F{PROJECT_GUID}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="ACCOUNT_ID"> <subreportParameterExpression>
<![CDATA[$F{ACCOUNT_ID}]]>
</subreportParameterExpression>
</subreportParameter>
<connectionExpression>
<![CDATA[$P{REPORT_CONNECTION}]]>
</connectionExpression>
<subreportExpression class="java.lang.String">
<![CDATA[$P{SUBREPORT_DIR}+"StatusResponse-sub.jasper"]]>
</subreportExpression>
</subreport>

 

 

I placed the main report as well as subreports into the Jasper server repository,

 

repository path in the server:[root]/reports /jobhistory

 

 

/reports/jobhistory/mainreport

 

/reports/jobhistory/subreport1

/reports/jobhistory/subreport2

/reports/jobhistory/subreport3

 

 

i am not able to execute the main report.

 

I think it's because of "SUBREPORT_DIR"

 

Plaase help me,

 

 

Thanks in advance,

 

Surendra Babu.K.

Post edited by: kunkasurendra, at: 2007/08/15 16:32

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...