Jump to content

Creating a variable and parameter filter


tjpren

Recommended Posts

Hi All,

I'm finally getting round to customising my first report.

The standard "getting started" tutorial worked fine, and I manged to get a report to run - excellent!

I'm now trying to filter my report based on the date.

I'm using an MS SQL 2005 database with a timestamp field as mm/dd/yy hh:mm:ss.

I'd like to:

1. create a variable (called Date) to convert the timestamp field to mm/dd/yy

2: create a parameter to filter on the variable, Date

I can see how to create the Variable, but don't understand how to write an expression. From the expression builder I selected the field and the getdate operator as follows:

$F{tblDelivery_EndTime}.getDate()

This doesn't work.

Help please for the correct syntax to create a variable

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