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

Students Click Here

Parameters and Stored Queries

Parameters and Stored Queries

Parameters and Stored Queries

(OP)
I am new to ServiceCentre and am using 6.0.2.0.

What I would like to do is create a stored query that a user can be prompted for a date which in turn would become part of the query, and display the results.

ie. All calls closed on <enter date>

Can anybody point me in the right direction on whether this is possible, and if so, where would I start.

Thanks in advance

RE: Parameters and Stored Queries

Where are you trying to call this from?  Button on a form/menu?

The easiest way I can think of would be to use scripts.  First script displays a format prompting user for a date.  Second one calls query.stored.  The field in the format would be the variable that is then in the query line of the stored query.  Don't forget that everything is date/time automatically, so your query will have to be like this:

date(close.time)=date($variable)

RE: Parameters and Stored Queries

(OP)
Thanks for the response.

Silly question time, when you place a button onto a form - how do you associate the script with the click event of the button?

Thanks

RE: Parameters and Stored Queries

the button ID would either match a line in the menu record if a menu format, or a displayoption in an application format

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! Already a Member? Login

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