SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Search Box in ssrs


Search Box in ssrs

Author
Message
ashwinboinala
ashwinboinala
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 497
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
Tee Time
Tee Time
Say Hey Kid
Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)

Group: General Forum Members
Points: 677 Visits: 465
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. :-)
ashwinboinala
ashwinboinala
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 497
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
ashwinboinala
ashwinboinala
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 497
And if possible how to create search box using this parameter with placeholder
sorry asking u 2 much help
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search