Jump to content
JasperReports Library 7.0 is now available ×

Date type parameter between reports


guoguo2002

Recommended Posts

Hello.

 

I have encountered a problem when trying to a report more interactivable.

 

This is what I am tring to do. The report takes data by 3 constraints: starting day, ending day, and user team.

starting day and ending day are Date type, and user team is String type.

 

I have made it possible to switch teams by clicking on the report by using ReportExeution hyperlink. However, when the team switching works well, the starting day and ending day do not.

 

1, They can only be sent out as String instead of Date.

2, When I go toString(), the input control appear to be quite differenct string than the original date.

 

Does any body have a solution to this issue?

Thank you in advance.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

guoguo2002 wrote:

1, They can only be sent out as String instead of Date.

 

What do you mean by this? You can have Date parameters for ReportExecution hyperlinks, as in

Code:

<textField hyperlinkType="ReportExecution">
...
<hyperlinkParameter name="StartDate">
<hyperlinkParameterExpression class="java.util.Date">$P{StartDate}</hyperlinkParameterExpression>
</hyperlinkParameter>
</textField>

 

HTH,

Lucian

Link to comment
Share on other sites

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...