Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2

Hello,
I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix)  and passing those  parameters. I am using SSRS 2008 R2.
Here's my scenario:
I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:  
Active
Term
Leave
Total
128
88
121
United States
110
80
85
New York
65
30
57
Manhattan
10
6
9
Buffalo
20
23
4
Albany
35
1
44
Texas
45
50
28
Dallas
40
30
22
Houston
5
20
6
France
18
8
36
Centre
18
8
36
Blois
7
2
8
Druex
6
1
15
Tours
5
5
13
I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York  Status = Active. But the remaining parameters (Country
and City  would be null). I know Country doesn't need to be Null in this case.
My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
As a crazy work-around (I think) I can put in the Where of the query  something along the lines of: this:
        and (a.Country in (@paramCountryCode) or NULL  in (@paramCountryCode) )
and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
Thank you for the help.
~J

Hi Jenna_Fire,
According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
multiple values for parameter Country, State and City in both reports.
2. In corresponding textbox, pass appropriate parameters in go to report Action.
4. Filter data in detail report (in where clause or using filters).
5. Save and preview. It looks like below:
Reference:
Using Parameters to Connect to Other Reports
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • Pass Checkbox Parameters from HTML Form to a stored procedure

    I'm still looking for a solution to my forms problem. FYI, I'm not using Applications Express to build my application--I'm using straight PL/SQL. I need to know how to pass checkbox parameters from my Web form. I'm allowing folks to select one or more checkboxes on a form that will call a delete function to delete the selected records. What I read in Oracle's "Database Application Developer's Guide - Fundamentals" isn't helpful to me. If someone would point me to some examples, maybe I could see what I'm doing wrong. Here's what was written in "Database Application Developer's Guide - Fundamentals":
    All the checkboxes with the same NAME attribute make up a checkbox group. If none of the checkboxes in a group is checked, the stored procedure receives a null value for the corresponding parameter.
    If one checkbox in a group is checked, the stored procedure receives a single VARCHAR2 parameter.
    If more than one checkbox in a group is checked, the stored procedure receives a parameter with the PL/SQL type TABLE OF VARCHAR2. You must declare a type like this, or use a predefined one like OWA_UTIL.IDENT_ARR. To retrieve the values, use a loop:
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('<p>Checkbox value: ' || checkboxes(i));
    END LOOP;
    END;
    SHOW ERRORS;

    I'm not sure I understand what your issue is.
    If your web form has the following checkboxes defined all with the same name:
    <input type="checkbox" name="attrib" value="1">one</input>
    <input type="checkbox" name="attrib" value="2">two</input>
    <input type="checkbox" name="attrib" value="3">three</input>Then you would create and register a procedure to handle the form submission that has a parameter with the name attrib of type owa_util.ident_arr e.g.:
    create or replace procedure handle_form(attrib owa_util.ident_arr) as
      iter number;
    begin
      for iter in attrib.first .. attrib.last loop
        -- do something with attrib(iter)
      end loop;
    end;
    /Now the one problem with this handler (or any form handler for that matter) is that if the user selects none of the check boxes, or no value for any of the expected parameters, the handler would be called with some parameters missing or with out any parameters passed to it, and the call will error out.
    To get around that you need to provide default values for all the parameters passed to your handler including the ident_arr parameters, however with ident_arr parameters that's difficult to do with standalone procedures. If you place your procedure in a package you can define package level variables of the appropriate types that can be used as default values:
    create or replace package my_web as
      empty_arr owa_util.ident_arr;
      procedure handle_form(attrib owa_util.ident_arr := empty_arr);
    end my_web;
    create or replace package body my_web as
      procedure handle_form(attrib owa_util.ident_arr := empty_arr) as
        iter number;
      begin
        for iter in attrib.first .. attrib.last loop
          -- do something with attrib(iter)
        end loop;
      end;
    end my_web;
    /now when you hit the situation where the user doesn't select any check boxes, the call to handle_form won't err out due to missing parameters, and the empty_arr won't have any elements to iterate over so the loop in the procedure body will be fine and you will be able to retrieve each selected check box value from the attrib array when you iterate over it.

  • Pass URL parameters from BSP to WDA for ABAP (via Post   )

    Dear Gurus,/ Joerge,
    I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
    i Have been through the Below thread
    Pass URL parameters from WD to BSP via Post
    Dear Gurus,
    "Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
    " resolved,i need some more info on the following issue, Kindly guide me,
    I have gone through the below thread but left with no clue
    Pass URL parameters from WD to BSP via Post
    Here i have 2 Issues
    First one is --->
    " After pressing the Button I am calling this URL which is WDA for ABAP
          action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    Second one is -->
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    " And how to Capture this Value in Webdynpro INIT method
    "Here am using Form and method = post , I am removing this as it is causing some problem while posting
          action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    Thanks and Regards
    Ramchander Rao.K

    Hi,
    let me see if I understand you well.
    BSP -
    You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
    Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_value            = PAGE_DATA
        data_name             = 'PAGE_DATA'
        EXPIRY_TIME_REL       = 3600.
    you call then the URL for the WDA application.
    WDA -
    probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_name             = 'PAGE_DATA'
    CHANGING
        data_value            = PAGE_DATA.
    read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
    if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY.

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • 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

  • Passing input parameters from an applet to a JSP page

    Hello all,
    Yes, its one of these questions which I have tried to find a solution from the already large number of postings but with no luck. I'm still a novice to Java/JSP so bear with me.
    Consider this scenario.
    1. An applet which has two input boxes (say First name and surname). 2. These parameters will be passed to a JSP page (so the applet will call a JSP page).
    3. The JSP will have have the necessary logic (or actually a JavaBean will) to connect to a database and add a new record with these parameters (first name and surname).
    I also need to consider editing/updating the record in the database. So a JSP page will connect to the database, retrieving the required record from the database and then display the parameters back in an applet in two input boxes (first name and surname) to be edited and saved again.
    I have been able to develop a similar application using simple HTML forms to add and update records in a database so I'm not worried about the database connectivity simply the issue of passing parameters from the applet to the JSP page and vice versa (for edit/update).
    Once i've managed to do this with input boxes, I can experiment with the other input types radios, checkboxes, select etc.
    Many thanks in advance,
    Assad

    create an URL object with u'r specified link of the java class and send the parameters..write trhis action in any buttonclick event in u'r applet.

  • How to pass GET parameters from BPEL to webservice?

    Hi,
    How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
    http://xxx.xxx.xxx.xxx/some-web-service?parama=abc&paramb=123
    How can I pass parama and paramb to the webservice call?
    Thanks,
    Ronen

    Hello Ronen,
    Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
    And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    Good luck!
    Melvin

  • Live view doesn't correctly pass URL parameters from HTML docs?

    Running into something that I wonder if anyone else has seen.  I've created a site in DW CS5 with a local testing server (XAMPP on Win7), and if I use LiveView to view an HTML page that has a link to a PHP page that includes a URL parameter, the parameter shows up in the LiveView address bar, but the page doesn't seem to use it (trying to display an image where the file is built using $_GET to retrieve the parameter).  The same HTML page, displayed in a browser, works.  And if I then save the HTML page as a PHP page in DW, identical code, LiveView works.  Sure looks like LiveView will does not properly handle URL parameters from HTML documents...

    Sorry if I wasn't clear... the navigation works correctly; I get to the page I'm tyring to get to.  One of the things that page should do is display an image, the I use a URL parameter to build the image file name to retrieve.  The link in the first page is something like <a href="gallery.php?pg=1">.  Works fine if the first page (the one I'm navigating from) is a PHP page, doesn't work (with the same code which is only HTML) if the page is an HTML page.

  • Passing collection parameters from/to Oracle 8i stored procedure to/from Weblogic java program

    Environment- Oracle DB 8.1.7 (Sun) - JDBC OCI 8.1.7 - Application Server (WebLogic 6.0 or 6.1)QuestionHow to pass oracle collection data types from PL/SQL stored procedures to Weblogic java program as in/out stored procedures parameters. I am hitting oracle error 2006 unidentified data type trying to pass the following data types:-o java.sql.Structo java.sql.Arrayo oracle.sql.STRUCTo oracle.sql.ARRAYo oracle.jdbc2.Structo oracle.jdbc2.Arrayo any class implemented oracle.jdbc2.SQLData or oracle.sql.CustomDatumInformationAbout PL/SQL stored procedure limitation which only affects the out argument types of stored procedures calledusing Java on the client side. Whether Java methods cannot have IN arguments of Oracle 8 object or collection type meaning that Java methods used to implement stored procedures cannot have arguments of the following types:o java.sql.Structo java.sql.Arrayo oracle.sql.STRUCTo oracle.sql.ARRAYo oracle.jdbc2.Structo oracle.jdbc2.Arrayo any class implemented oracle.jdbc2.SQLData or oracle.sql.CustomDatum

    this is becoming a mejor problem for me.And are you storing it as a blob?
    Oracle doesn't take varchars that big.
    And isn't LONG a deprecated field type for Oracle?
    From the Oracle docs......
    http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10759/sql_elements001.htm#sthref164
    Oracle strongly recommends that you convert LONG RAW columns to binary LOB (BLOB) columns. LOB columns are subject to far fewer restrictions than LONG columns. See TO_LOB for more information.

  • Identity 6.0 issues passing SSO token from JSP to web service

    Hi,
    Environment: Solaris 8, SunOne IS 6.0, SP1, Sun One WebServer
    We're using a JSP (based on the samples) to pass an SSO token to a java based web-service (everthing is running locally on one server):
    The token string resulting from calling mgr.createSSOToken is different from the value examined in the browser/JSP initial cookie and is practically useless when passed to the web-services for use as an SSO token (doesn't work and IS doesn't recognize it as a valid session/token).
    Here's the code:
    >>>>>>>
    SSOTokenManager mgr = SSOTokenManager.getInstance();
    SSOToken token;
    if (request.getParameter("token") == null)
    token = mgr.createSSOToken(request);
    else
    token = mgr.createSSOToken(request.getParameter("token"));
    mgr.validateToken(token);
    >>>>>>>>
    What are we doing wrong?

    not resolved closed

  • Passing arbitrary parameters from html

    I'm having trouble figuring out how to pass an arbitrary
    string to a basic flash movie (*.swf) as a parameter. In this case
    I plan to instantiate a number of the same flash movie objects on
    the html page and they will determine their behavior by inspecting
    the argument passed from the html instantiation and act
    accordingly. What is the best way to accomplish this?
    Thanks,
    Richard Bagdazian

    in your embed and object tags, put your variable after your
    file name:
    scr="movie.swf?myVar=1"

  • How to pass multiple parameters from jsp to servlet using iframe

    function updGrade(grd,actDetID,sID)
    updateFrame.location="/clucas/updateServ?s_id="+sID.value+" &act_ID="+actDetID.value+" &grade="+grd.value+";
    hi, i have this javascript on my jsp and try to send those three params to updateServ servlet inorder to update a grade value to database, but for some reasons it does not work. It is only work when I pass one parameter only.
    Can anybody help me with this please?
    thanks

    You have spaces before the & signs. They can't be there:
    function updGrade(grd,actDetID,sID)
      updateFrame.location="/clucas/updateServ?s_id="+sID.value+
                                           "&act_ID="+actDetID.value+
                                            "&grade="+grd.value;
    }

  • 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?

  • Display Blank Tablix when using multi value parameter in SSRS 2008 R2

    I have a main report which contains tablix1 and tablix2. Tablix1 is using DataSet1 and Tablix2 is using DataSet2. I have a multi value parameter set up with 71 items to choose from. My company owns 71 convenience stores and what I am doing is comparing sales
    for a hard coded date in DataSet1 versus a hard coded date in DataSet2, sales for the same date 1 year ago. Pretty simple, works great when both datasets return data. However, we have a store that we opened up about 4 months ago. The data is displayed
    in Tablix1, but since the store did not exist 1 year ago, there is no data for Tablix2. I have tried the "No Row Message" and Repeating Column and Row Headers, etc. When I choose all stores that existed last year, the report runs great. When I choose
    a store that existed last year and our new store (#39) that did not, the report messes up. The below image, you can see Tablix1 is good, but Tablix2 should be blank and only show the column headers. Instead it moved Store #40's Tablix1 beside it. If I
    run the report and just select store #39, Tablix1 runs as it should and Tablix2 shows The column headers and a blank row. It disappears as soon as I select multiple values.
    When you click the next page button, you will see Store 40's Tablix2 where it's Tablix1 should be and then a blank space where Tablix2 should be.

    Hi BassMan75,
    According to your description, there is a main report with subreport, since the store did not exist one year ago, there is no data for the subreport. You want to show tablix grid even through there is no data in subreport, right?
    Report data comes from datasets, if there is no corresponding value in the dataset, only column headers will be displayed in the report, we could not set the rows to blank, so we can’t achieve your goal directly. As a workaround, we can put one text box
    in the report with the message: No data for the store. In this way, if there is no data meets search condition, the message will be displayed in the report. Please refer to the following steps:
    Click and select the tablix.
    In Properties window, in No Rows section, in NoRowsMessage text box, type No data for the store.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to Design Multi Page Report in SSRS 2008

    Hi All,
    I have managed to create a multi page report. When I am preview mode i can see that the report has 2 pages.
    But when I am in design view I cannot view the second page. How can I view the second page. Reason being I am trying to create a template where the table for certain data needs to be at the top of the page and some data at the middle and so on.
    Thanks in advance.
    Aash.
    Aash

    Hi Aash2,
    According to your description, the behavior of cannot view the second page in design view is expected, in another way, there is only one page in design view.
    Report Designer supports two views: Design to define the report data and report layout, and
    Preview to display a rendered view of the report. If you would like to show a table on the first page, and show the other table on the second page, you can add a page break on the first table like followings:
    1. Click the gray handle in the first table, select “Tablix Properties”
    2. Click “Add a page break after” check box under Page break options in General Tab
    After do above, you can see the first table in the first page, and the other table in the second page.
    For more details about report designer, please see the following article,
    Working with Report Designer in Business Intelligence Development Studio:
    http://msdn.microsoft.com/en-us/library/cc281300(v=sql.110).aspx
    If you have any question, please feel free to ask.
    Thanks,
    Eileen

Maybe you are looking for

  • Adding Saved Searches task flow to a Page Template

    I am trying to add the Spaces "Saved Searches" task flow to my custom page template. I have tried a few different approaches and none seem to be working. First, I tried simply dragging and dropping the task flow from JDeveloper's Resource Palette int

  • USB not showing up in Finder

    When I insert a flash Drive into a USB port into my MacBook Pro, it doesn't show up in Finder. I am trying to save videos onto the Flash Drive, but cannot find it.

  • How to assign a Substitution variable dynamically?

    Hi All, I was trying to assign a substitution variable which should get data from the time period and should directly load into the substitution variable automatically. The process should be automated. so as to refrsh the substitution variable daily.

  • Removing a Partition

    I've just installed Leopard, and was wondering if I could use the Disk Utility to unpartition a Firewire external drive. I have a 250GB LaCie drive that I had previously partitioned into 2 drives. Now I want to make it a single partition without losi

  • There is a major color shift in my artwork image from the photoshop jpeg to dreamweaver - it gets 'g

    There is a major color shift in my artwork image from the photoshop jpeg to dreamweaver - it gets 'grayed out', loses color contrast. I checked in Bridge and the color settings are synchronized. The image in photoshop is just like what i get from my