Solved

How can I set a report parameter to default to a wildcard in SSRS05?

Posted on 2009-07-16
5
735 Views
Last Modified: 2012-05-07
I have a report that I need to have a default wildcard setting in report parameters. I need this parameter to also be manually kyed to filter the data further as needed by the user. The default wildcard would produce the data the user needs to pick more specific filter.
0
Comment
Question by:mmentele
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Hadush
ID: 24872102
Does your parameter default wild card just '%' or can you be more specific with examples of parameters you want to pass?
 
0
 
LVL 9

Accepted Solution

by:
Hwkranger earned 250 total points
ID: 24872142
You can use a BIT flag (A check box) and then when the user selects it, concatonate a '%' sign to the string.   You'll have to use  the LIKE clause instead of "="



0
 

Author Comment

by:mmentele
ID: 24872228
I have found setting '%' does not work, no data is returned. I will try to be more specific. This report looks at inventory transactions for specific part numbers. I have 4 report parameters; StartDate, EndDate, partID and my new one TraceID. The users can enter a start, end and part# and retrieve data including the TraceID. My user wants to be able to then filter the report further by being able to type in a specific TraceID. I have the report breaking down into sections by sorting by TraceID so I dont get why they want this, but none the less this is the assigned task :-/

Does this help?
0
 
LVL 8

Assisted Solution

by:Hadush
Hadush earned 250 total points
ID: 24872558
Like Hwkranger said change your query to  LIKE ('%TraceID%') and will give the results what ever they want. For example,  when ever they type lats say "A" it will bring all TraceID which contain "A"
 

Where TraceID LIKE ('%TraceID%')

Open in new window

0
 

Author Closing Comment

by:mmentele
ID: 31604354
I ended up changing direction as the needs changed
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question