Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Search Box in ssrs Expand / Collapse
Author
Message
Posted Thursday, September 19, 2013 8:16 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 10:00 AM
Points: 29, Visits: 373
Helo Everyone,

i have some wierd requirement i need a search box in ssrs i have all databases name in a table if i search like %ST%
it should display all databases that has st in it testDB,TwistDB etc...
please let me know if u have any idea how to do this.


Thanks,
A
Post #1496676
Posted Friday, September 20, 2013 6:52 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, July 24, 2014 1:50 PM
Points: 531, Visits: 448
If I understand what you are asking, you want to have a parameter that allows you to search by only a portion of a value, as opposed to entering a full value.
1. Create a parameter (this will be your search box)
2. Right click on the Data set under Report Data on the left side of BIDS and select Dataset Properties.
3. Choose Parameters
4. Edit the Parameter value (this is your search box) by click on the fx on the right side.
5. Enter ="%" & Parameters!YourParam.Value & "%" replacing "YourParam" with the actual parameter name.
6. In the Query Designer add LIKE @YourParam to the filter for the column you are looking to search in.

If I misunderstood what you have asked, my apologies.
Post #1496858
Posted Friday, September 20, 2013 7:10 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 10:00 AM
Points: 29, Visits: 373
If you dont mind can i get a clear picture what should i do with this below statement

5. Enter ="%" & Parameters!YourParam.Value & "%" replacing "YourParam" with the actual parameter name.
6. In the Query Designer add LIKE @YourParam to the filter for the column you are looking to search in.

5--> let say i have parameter name @dbserach

so what should i write

6--> where dbname like @dbsearch is this correct

sorry i am new to this
Post #1496870
Posted Friday, September 20, 2013 7:23 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 10:00 AM
Points: 29, Visits: 373
And if possible how to create search box using this parameter with placeholder
sorry asking u 2 much help
Post #1496882
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse