SSRS search text box (parameter) dependent dropdown lists cascading filter - SQL Reporting - sql

I am having a situation where I can't proceed further with my report.
I have 2 parameters and the first parameter is a search text and user allowed to enter multiple search values and then the second parameter will get loaded and in the dataset to get loaded.
ReportParameter1 - user should give text need to be search. It should allow multiple values.
ReportParameter2 - (Multi Selection dropdown) - If we pass single value in ReportParameter1 it is showing related dropdown list in ReportParameter2. If multiple values are given in ReportParameter1 it should load all the values in ReportParameter2 related to the search words but it is not returning any dropdownlist.
Any help will be highly appreciated and I hope the explanation make sense?
Thanks,
For passing one parameter:
passing multiple values:

You'll need to use the IN operator for multiple parameter values.
SELECT party.party_name
FROM apps.hz_parties party
WHERE UPPER(party.party_name) IN(:ReportParameter1)
The other option would be to filter the tablix.
Note: Report processing time will be longer for a tablix filter.

Related

Holding parameter values when report is refreshed due to custom buttons used for expand/collapse groups

This may be as simple as it can't be done, but I have to ask. :) I am building a report using Report Builder 3.0. The report contains a table which also has Grouping established. I wanted to give the user an easy way to expand/collapse all rows of the table, so I used the method of creating a parameter with two values (0 for collapse, 1 for expand), tied the visibility of the group to the parameter using an expression in the Hidden Property for the group. Then I created two text boxes for Expand and Collapse and added the respective parameter/value in the Action in the text box properties.
At this point, everything works as intended. Here is where I run into the issue. I added another parameter, lets just call it "Location". The parameter is a text data type that allows multiple values and gets it available values from dataset/query in the same report. This is where I am guessing what I want may not be possible. When I select my Location(s), then run the report it all looks good. However, when I click on one of the Expand/Collapse text boxes, it clears out the values that I selected for the location(s). I am guessing this is due to the fact that the available values for the Location parameter is set via a query at run time. Is there any way to maintain the values for the Location parameter when triggering the expand/collapse buttons?
Thanks in advance!

SSRS: How To Create Dynamic Report With Multiple Subreports?

I am still fairly new to SSRS, and I do not know what I need to/can provide as examples to help clarify my issue.
I am developing an SSRS report that accesses a NAV database and generates a report for an equipment number. My task is to generate a master report that can print multiple of those kind of reports(currently 10 max). I am using sub-reports to get the content that I need for an equipment number.
I am looking for a way to make this dynamic, where I can generate 1 to n sub-reports based on how many values were picked for the multi-value parameter. The end result should be one PDF file that contains the full report for each equipment number listed. I am trying to only use SSRS.
I have seen where I could hide sub-reports then make them visible if a condition is met, but this isn't the functionality that I am looking to use. So, what would be the best way to dynamically generate sub-reports based on a multi-value parameter?
I figured it out. I made the sub-report parameter equal no value. I made the main report with a parameter that can select multiple equipment numbers, a list, and a data set which filtered down to the appropriate equipment numbers to avoid duplication. I made the sub-report object in the main take in the cell value from the list equipment number. When the list proceeded to the next row, it copied all of the objects in the box area.

Allow user to type in multi values instead of selecting

In SSRS 2008R2, how it is possible to allow a user type in multi values instead of selecting?
The report must have multiple filters and all are optional where user can select one or any parameter to filter. Transaction # and category code are parameters where its required allowing the user type in values or select.
Parameters are as below
from date:
To Date:
Transaction #:
Category code:
Using a multi value parameter where available values are based on a query is not a solution as the result will have a very long list and user wont be able to type in. thus we need the user to type the values to be filtered on.
transaction# is an integer and user may enter one or many or just keep it blank to get the result based on other used filters.
The following will work with an embedded query:
First set up your parameter with data type Text and to Allow multiple values.
Since the parameter needs to be optional, set a default value (such as All) and update the WHERE clause in your query to get results based on this parameter:
...
WHERE ('All' IN (#Customer) OR CustomerNumber IN (#Customer))
...
Now when you run the report you can highlight the default value in the dropdown:
and start typing in the values to search on (using Enter between each item):
the only solution integrated into SSRS i found so far is to sue single valued text parameters to be parsed by the underlying database.
multi-valued parameters are replaced by single valued parameters, your users can fill them as they please, you have to split/validate these input values in the report code or at the sql layer.
this is very quick to implement and integrated into SSRS but has some (imho) huge drawback: input validation and error handling.
if an external solution is an option you can go with an asp.net report viewer.
leveraging on web scripting, ajax and so on the input interface can be very user friendly while keeping SSRS as a backend to do the heavy work.

Issue related to the parameter of report in Pentaho Report Designer

I have a chart that contains 4 parameters and every parameter is related to the following one, i success i having the result of the chart by selecting the whole parameters one after the other,
The probleme is that i want to have another option by having the result of the chart by selecting also just one parameter or having the result without selecting any parameter
Can you please help me as soon as possible
Thanks a lot
There is one checkbox available while creating a parameter "Mandatory".Just remove the Right click from the checkboxes while creating all four parameters.Now you can check your result while selecting any parameter you want.

How to filter a Sharepoint List Column with a Textbox Control Value using a "Contains" query?

I'm using a data view to display a list (Sharepoint 2010) that has several columns including one that has a Name column. I've provided the user with a text filter on the page to send values to filter the Name column in this list. The problem I'm facing is that the filter only works for exact matches and not partial matches.
I tried to overcome this problem by using Sharepoint Designer to:
create a parameter that uses the textbox control value.
Filtering the Name column with this parameter and setting the comparison to "Contains"
Unfortunately if the default value of the Parameter is blank, the list does not display any data. If the default value of the parameter is set to part of a name in the list, the list displays names that contain that string. However, when changing the value in the text box and searching, the list does not return results. Please let me know if you guys know how to fix this. Any help is much appreciated and let me know if you need any additional information. Thanks!
Managed to find a solution to my problem. I used a custom javascript solution designed by jvossers (http://instantlistfilter.codeplex.com) that involves the list being filtered instantly much like Google's search!
The only downside of this solution is that it only filters the items currently displayed on the screen. Therefore, if you have a data view web part which limits the amount of items displayed on the page, this solution won't help you. In order to facilitate this solution, display all the row items on the page (by increasing the item limit per page to a larger number than your total list rows) and then add this code into a content editor web part on the same page. Worked brilliantly for me. '
By the way if you are using jQuery 1.3.x or higher, you should modify the script a little as described in the disscussion here: http://instantlistfilter.codeplex.com/Thread/View.aspx?ThreadId=49123