Passing Multivalued parameter to sub report in SSRS

Hi Team,
I tried passing multi valued parameter to sub report in SSRS but the report is blank.
Rgds,
Shree

Hi Shree,
As per my understanding, the issue is caused by the multiple-value parameters are not passed from the main report to the subreport correctly. Please refer to the steps below to check whether you configure the subreport parameter settings correctly:
Drag a Subreport control from toolbox to design surface.
Right-click the Subreport to open the Subreport Properties dialog box, then select the correct report as subreport.
Click Parameters in the left pane.
Add parameters as below (Parameter1 is a single-value parameter, Parameter2 is a multi-value parameter in subreport ):
Name: Parameter1              Value: [@ReportParameter1]
Name: Parameter2              Value: =Split(join(Parameters!ReportParameter2.Value,","),",")
Please also directly select or type the same values in subreport to check whether the subreport works well with those parameter values.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • In Drill through report pass hyperlink value as parameter to another report using ssrs 2008 R2

    Hi All,
    I have one drill through SSRS report in which if I click one hyperlink in the summmary report it should be passed as parameter for detail report, like this....
    Summary:
    AccountType
    A1
    A2
    If I click A1 then that should be passed as parameter to detail report and display A1 data in detail report
    If I click A2 then that should be passed as parameter to detail report and display A2 data in detail report.
    Please give me some ideas or expression code to achieve this in using SSRS 2008R2. Its very urgent.
    Thanks,
    RH
    sql

    Thanks the folowing is my source data for the parameter I am including to the drill through
    SELECT DISTINCT
    case
    when EA_STATUS in ('E4', 'U4', 'P5', '02', '03', '04','B2','B3','B4','12')
    then CAST('Project' AS VARCHAR(15))
    else CAST('Non-Project' AS VARCHAR(15))
    end as EA_PROJECT_GROUP_DESC
    FROM TEAMS.FMPROD_V_EA
    As you can see it has only 2 values.So how do you suggest I wirte the expression to include in the report.
    The name of the parameter I will be using is EAProjectGroup.but below is the error I am getting trying to run the report
    rsMissingFieldInDataSet] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. This field is missing from the returned result set from the data source.
    [rsErrorReadingDataSetField] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. The data extension returned an error during reading the field. There is no data for the field at position 45.
    Preview complete -- 0 errors, 72 warnings
    what does the position 45 mean?

  • Passing database command parameter to sub-report

    I'm trying to pass a runtime parameter from a main report to a database command parameter in a sub-report, and having some trouble.
    My main report has parameter fields (Vendor, Manufacturer, etc) that the user selects at runtime - the result set includes Item Code - that part is working fine.  Where I'm having trouble is with linking to the sub-report.  My sub-report has a stored command that takes a parameter (ItemCode) and counts the number of times it's shown up on an invoice.  When I created the command, it asked for a value for the parameter, and won't accept a blank entry.  Now, whenever I try to run the main report, it asks for the ItemCode parameter for the sub-report - which kind of defeats the purpose.  I've tried linking from ?Pm-OITM.ItemCode in the main report, but the Subreport Links window doesn't show the Command parameter to link to.
    How do I take a field from the main report and pass it to a sub-report to be used as a parameter in a stored database command? 
    I'm running CR 2008, and SAP B1 2007 PL 42 on MS SQL 2005, and I'm still pretty new at CR, so details help.
    Thanks.

    Go to change subreport links and add Item Code from main report and then you can see the sureport stored procedure parameter in the Subreport parameters list, select the parameter and do not select any field from subreport.
    You will be able to see the stored procedure parameter in the list only when the Item Code and the parameter are of same data type.
    Regards,
    Raghavendra

  • How to pass the value from Sub report to main report

    I have un report(mainreport) within a subreport(subreport).
    With reporting services, how to pass the value from Sub report to main report?
    thanks

    Hi Alebet,
    With reporting services to pass values from sub report in to main report is not supported directly.
    But there are some workarounds through which you can get this .
    There are two ways to get this.
    1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
    2- Using this temporary tables data write some Scala function in the data base.
    3- Now in your main report query return this scala function as a column.
    4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
    This will definitely work fine as i have done some report in this way.
    Another way of doing is that
    1- prepare another data set with the same query as in sub report in the data tab.
    2- then refer this 2nd dataset in your main report .
    But better way will be the top one.
    Anyway please let me know if you get the solution.
    Thanks
    Mahasweta

  • Pass multi value parameter to sub report in Drill through report, ssrs

    I have two reports 1 is subreport and other is main report. Date Field are placed in both reports. i have groups in main report,
    one group is task. In the task fields one persons is working in 3 project, two project are same company and 1 is for other and it give me count for each project. I
    want when i click on link it send multivalue parameter to subreport and it just show matching records.
    Asif Mehmood

    As I understand what you need is to use LookupSet function. 
    Suppose if your dataset is like this (for simplicity I'm showing only required fields)
    PersonID Project Company
    ID1 P1 C1
    ID1 P2 C1
    ID1 P3 C2
    ID1 P4 C2
    ID1 P5 C3
    If you want to get the full project list for the person just send the PersonID alone and filter using it in the subreport. You can keep the project/company parameters optional in that case and put a default value. This would be the easiest thing.
    Now if you want pass the project parameter also you need to pass it like this
    =Join(LookupSet(Fields!Person.Value,Fields!Person.Value,Fields!Project.Value,"DatasetName"),",")
     This would act like a self lookup and return you full list of projects for the person and then you can use this to set the parameter value in the subreport.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Passing Parameter to sub report from detail section of Main report

    I am new to CR
    I am developing a CR for Clinical Lab Test. My main report have four field i.e
    1. Test Code
    2. Test Name
    3. Result Value
    4. Normal Values
    This report has sub report in Page Footer. When TestCode = 18 or 19 It has to show a normal value table in Page footer of that page. Other wise this table should not appear on page footer.
    Please help me

    Hi Qasim,
    Go in Section Expert and select the page footer.  You will find Suppress in right side of the window, go in formula editor and give the follwoing formula :
    If Testcode<> 18  or Testcode <> 19 Then true
    Thanks,
    Sastry
    Edited by: Sastry Duvvuri on Oct 14, 2008 7:10 PM

  • Resultset of main report passed as parameter to child report stored proc

    Post Author: chicagolad
    CA Forum: Data Connectivity and SQL
    I seem to be in a bind with this issue. I have a main report and sub report. The main report takes in a comma seperated value as a parameter to the stored procedure. The result set of which is used to group 20 sub reports. These subreports use a different stored procedure to which I need to send the group value which is a part of the result set table I get for the main report. Come what may, I am not able to link the main report with the sub report.
    To repeat the question, how do i pass the a result column of the main report as parameter to the sub report stored procedure? Any insight will be much appreciated.
    TIA
    chicagolad

    Raghavendra,
        It seems that no matter what I do, using the parameter ?TagNumber as the item to link from in the main report (Subreport Links) will not give any results no matter which item I link to in the subreport, but if I use the specific data item that the parameter represents, then any of the choices in the lower left "subreport parameter field to use" will work.  So I can simply use the specific data item and everything works fine. It's strange, as last week using the parameter of the main report worked, but as I have a working solution I don't have to resolve that.  (There was data for the parameter value,as I printed the parameter value in the report and the selected value was shown.).
       This is now resolved.  Thanks for your help.
    Don

  • Passing parameters to multiple sub reports

    Dear Experts,
    I have a crystal report (version 11) that has 4 subreports. I need to pass the same list of parameters to each sub report from the main design. I can not find a global perameter. Is this possible. an example is the date range. I need the user to be able to run the report and put the date range in once and have it passed to all of the sub-reports. thank you for your time.

    Hi,
    Yes, this is very much possible. Here's what you need to do:
    If the parameter is a string, number or date created in the Main Report then you can right-click the 1st subreport and select 'Change Subreport Links' > In the Fields to link to area move the Main Report parameter from the Available Fields area on the left.
    If the Subreport also has parameters then you can select the right-one that needs to be linked from the drop-down. This is directly link the Main report parameter to the Subreport parameter and you would prompted only once.
    Hope this helps!
    -Abhilash

  • How to pass the value from sub report to sub report

    how i want get one value from sub report to sub report..
    can i do this one...
    how can get the value.
    i know main report to sub report
    i tried that way but
    value is  0.00 is comming
    Any reasons.

    Hi Try this.
    Create a formula like this in subreport1 (from the report where you want to pass your value)
    Whileprintingrecrods;
    Shared Numbervar x :={subreport1Value};
    Then go to 2nd sub report and Create a formula like this
    Whileprintingrecrods;
    Shared Numbervar x ;
    Note :Your sub report1 should execute before sub report2 .That means sub report1 should be in the above section of sub report2

  • How to pass Multivalue parameters from main report to the subreport to a database stored procedure

    I am having a Main Report, where the user selects the parameters, and calls the subreport which in turn calls the stored proc which updates the report parameters table, which will be used by all the other sub reports to filter data on.
    It works fine when I pass single values from the Main report to the sub report, and it updates the database, but when I map the formula field to the subreport, the subreport does not even show up, and nothing happens on the database. I am thinking the subreport is not executing. I am using the 'Change Subreport Links' to map the formula fields to the subreport parameters.
    Please let me know if there is any other work around or a sample report which solves a similar problem.

    That is definitely a problem. CR 11.0 has been out of support for 5+ years(?). CR 11.5 has been out of support for close to 3 years.
    As far as I am concerned, the suggestions given here are going for naught as presumably they are based on recent builds of CR (E.g.; CR 12.x or higher). I really doubt that Abhilash or Jamie remember if CR 11.0 had problems related to the issue at hand. But they do know that their suggestions work in current versions of CR.
    Thus a suggestion; I suspect that you should be able to obtain an image from your IT where you can install CR 11.0 and update it to CR 11.5. Then use this as a proof of concept to the powers that be in your org that it is time to get with the times. BTW.; the most current version of CR is CR 2013, version 14.1.x(!). Again, something that your org should be aware of. So, even better than updating the image to CR 11.5, download the free 30 day eval of CR 2013 and try the suggestions in that version. The eval download is here:
    SME Free Trials | SME Software | SAP
    BTW.; CR 2013 is a side by side install, meaning that it will happily co-exist with your current CR 11.0 install.
    - Ludek

  • Parameter in sub report

    Hi,
    How can I transfer data from sub-report to the main report with the parameter. For example, Total field in sub report should be transferred to Total1 in the main report
    Thanks,
    Olga

    You may check these threads:
    Accessing Shared variables of sub-report in main report.
    Re: crystal reports - how to call required sub report into main report
    Thanks,
    Gordon

  • Pass a parameter from a report to a customization form of another report

    Hello,
    I want to pass a parameter value from a report to the customization form of another report and display it in the text field in the customization form as a default value. I have 2 variables in the customization form and in one of them, I would like to display the default value from a previous report.
    Thank you
    Jayasree

    1. go to the manage component screen of the report
    2. open the package body (pl/sql source)
    3. search for 'procedure show_parms'
    4. scroll down till you find
    -- call to parameter form rendering engine
    5. copy the procedure call below it
    a) you will have to pass <PORTAL_SCHEMA>.wwv_utlglobl.RUN_AS_NORMAL to p_mode
    b) remove the parameters p_reference_path, p_redirect_url, p_exec_mode, p_page_url ( or you can pass null to them)
    c) 'p_parm_names' will contain your 2 parameters
    d) you can pass values to 'p_parm_values' which you want to be displayed in the parameter forms.
    6. you can call this procedure from a dynamic page and link the dynamic page to your first report

  • Need help on passing a parameter in Oracle report

    Hello guys ...i Have a custom report which takes..TRX number and Org id as input Parameters.where TRX number is mandatory and ORg id is optional.
    here is my question ..if i dont pass the org id,it should take the id of the Organization where i am running the report.how can this functionality achieved...
    thanks....

    Hi,
    You can use NVL function in form, where you are passing the parameters. So replace the *:ORG_ID* with
    NVL(:ORG_ID, :CUR_ORG_ID). Or If you are saving the current Org_id in a table / passing it to the report using another parameter, you can do the same in the report also.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Passing a parameter to a report that appears to be ignored.

    I am using VS 2005 and Crystal Reports XI R2
    The app I am working on allows users to either email a report as a PDF attachment or preview the report using a CrystalReportViewer. Users select a record number as the report parameter which the app feeds to the report when it calls it.
    My problem is that when I use the CrystalReportViewer all the records in the table are reported on, not just the one the parameter refers to. However, there is not a problem when the report is exported to the PDF file. The correct record, and only the correct record is reported on.
    The code used for the preview is ...
    Private oReport as ReportDocument
    Private Sub ConfigureCrystalReports()
            Dim oConnect As IConnectionInfo
            oReport = New ReportDocument()
            Dim reportPath As String = Application.StartupPath & "\" & "Receipts.rpt"
            Try
                oReport.Load(reportPath)
                For Each oConnect In oReport.DataSourceConnections
                    oConnect.IntegratedSecurity = True
                Next
                oReport.SetParameterValue("ConstitreceiptDetailsID", "2")
                myCrystalReportViewer.ReportSource = oReport
            Catch ex As Exception
                MsgBox("Error '" & ex.Message & "'")
            End Try
        End Sub
    The sub above is called on the load event of the form the CrystalReportViewer is on.
    To complicate matters, if I first export the report as a PDF, then view it, it performs perfectly. Only the correct record is shown. Code for this is as below...
    Private oReport as ReportDocument
    Private Sub ConfigureCrystalReports()
            Dim oConnect As IConnectionInfo
            Dim exportOpts As ExportOptions
            Dim DiskDestOptions As DiskFileDestinationOptions
            Dim strResult As String
            oReport = New ReportDocument()
            Dim reportPath As String = Application.StartupPath & "\" & "Receipts.rpt"
            Try
                oReport.Load(reportPath)
                For Each oConnect In oReport.DataSourceConnections
                    oConnect.IntegratedSecurity = True
                Next
                strResult = "C:\Test2.pdf"
                DiskDestOptions = New DiskFileDestinationOptions()
                DiskDestOptions.DiskFileName = strResult
                exportOpts = oReport.ExportOptions
                With exportOpts
                    .DestinationOptions = DiskDestOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.PortableDocFormat
                End With
                oReport.SetParameterValue("ConstitreceiptDetailsID", "2")
                oReport.Export()
                myCrystalReportViewer.ReportSource = oReport
            Catch ex As Exception
                MsgBox("Error '" & ex.Message & "'")
            End Try
        End Sub
    Clearly I'm doing something wrong with the viewer. If anyone could make any suggestions I would be more than grateful.

    Are you using the parameter in your selection formula? If so, see if the following helps:
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=7896863&sliceId=&dialogID=24902374&stateId=1 0 24906112
    Regards,
    Jonathan

  • Using a multivalued parameter in a report

    Hi,
    I want to create a report with a multivalued string parameter.
    I tried the following code but it does not work:
    IPropertyName my_prop_name
    Map m_parameterDefinitions = new HashMap();
    m_parameterDefinitions.put(my_prop_name, new PropertyDef(PropertyType.STRING,true,true,false,false,false));
    List my_values = new ArrayList();
    my_values.add("zero");
    my_values.add("one");
    my_values.add("two");
    m_parameterDefaults.put(my_prop_name, my_values);
    IReportInputMeta m_meta = ReportInputMeta.getInstance(m_parameterNames, m_parameterDefinitions, m_parameterDefaults);
    does anyone knows how should I do to make it work?
    thanx.
    Bassem.

    As far as I understand, the reporting UI does not support multivalued parameters.
    Best regards, Julian

Maybe you are looking for

  • Error while installing NWDS 7.0.10

    Hi, I tried to install <b>NWDS 7.0.10</b> (downloaded from SAP Marketplace) with <b>JDK1.4.2_09</b>. After the installation finished, it gave an error message which reads "<b>The following program files could not be registered -- c:\sysroot\system32\

  • Starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact

    Hi Guys! Thanks for your advises. I still working toward a resolution. But I encountered another issue from Enterp Manager : ERROR : Please correct the following error: Connection string must be specified. My connection has this format: //using conne

  • Too low IP mtu vs ethernet mtu

    Hello, If the switch gets packet on interface and the packets MTU is bigger, so it will constantly drop the packet ? now: If the router gets bigger packet that its IP MTU, the router has an option to fragment the packet? Do i'am right ? Thanks!

  • Cleaner Navigation with a second navigation bar

    Does anyone know if it is possible to create a second navigation section in a site and how? It will greatly help reduce clutter in the main navigation on the top of the page (Welcome, My Ablums, My Movies, ... 20 other items I plan to create). I need

  • Java --- It's too big to take it all in...

    I am wondering where is the best place to start with java, I have basic experience in programming and i understand the basic pricipals and fundermentals of the language! But i don't know where to go from there!