INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

pass current date to paramter in CMC

pass current date to paramter in CMC

(OP)
Hello to All,

Using CR 2008, Enterprise XI-R3, Oracle 11g.

I have a report with date parameter and I am trying to automate the report in CMC and need to pass the date parameter to current date as default. Could anyone please help me how to do this?

TIA,
RR

 

RE: pass current date to paramter in CMC

Simple answer, you can't.  However, there is a way around this.

Create a new parameter that has a Yes/No answer so the user can specify whether to use the current date or a specified date.  Your selection criteria then becomes something like this:

(({?UseCurrentDate} = 'Yes' and {table.date} = CurrentDate) or
 ({table.date} = {?DateParam}))

Note the use of parentheses - if you have other selection criteria in your report, these become important!

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.

RE: pass current date to paramter in CMC

(OP)
Thanks, Dell. Tried this but doesn't work for me as the parameter is called by SP.

RE: pass current date to paramter in CMC

You have a couple of options:

1.  Set up the SP so that if the date parameter is null, it defaults to the current date.  I think Crystal will work with this, but I'm not certain.

2.  Create a new version of the report/SP combination that doesn't require a date parameter and use that for your scheduled runs.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close