guoguo2002 Posted January 16, 2008 Share Posted January 16, 2008 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 More sharing options...
lucianc Posted January 16, 2008 Share Posted January 16, 2008 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 inCode:<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 More sharing options...
guoguo2002 Posted January 20, 2008 Author Share Posted January 20, 2008 Thanks you, Lucian.This is exactly what I was trying to do.Problem solved!! Best regards Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now