+ Reply to Thread
Results 1 to 2 of 2

Thread: Optionally passing parameters from drill-down to sub report

  1. #1
    Barn Newbie Barron is an unknown quantity at this point Barron's Avatar
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    3

    Optionally passing parameters from drill-down to sub report

    I have a report that has a matrix drill-down, and a subreport that accepts parameters from the columns and rows of this drill-down.

    So for example, I have rows A, B, C and columns D, E, where A->B->C and D->E is the drill down.
    My subreport accepts parameters for A, B, C, D, E where I'm setting them as:
    Parameter Name is A (the parameter name in the subreport) and Paramter Value is =Parameters!A.Value
    etc

    However, when I click the link to jump the subreport, the parameters always set the C and E values in the drill down, regardless of how far down I've drilled into the matrix. If I've only drilled down to the B level row, in my example, how do I set it such that children of B, which would be C in my example, is not passed and is NULL in the sub report.

    Hope that makes sense.

    What I was thinking is that rather than passing the Parameters!A.Value, I can pass an IIF expression instead.

    Something like:
    =IIF(groupname.visible, Parameters!A.Value,NULL)
    or
    =IIF(fields!a.value is nothing, nothing, fields!a.value)

    However, there's no function for visible for the group name or text box, but maybe something similar can be done or hopefully there's just a more simple way to do it that I don't know about.

    Thanks!
    Last edited by Barron; October 7th, 2009 at 05:11 PM.

  2. #2
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    You are right. There does not seem to be a function that allows you to determine whether an object is visible or not.

    The only thing I could suggest is adding custom code to your report. You can design your own functions although I have not written one that would accept an object as a parameter then check to see if it is visible or not.

    This may be possible, but would require extensive testing.

    If the issue is simply that you do not want the user seeing that the parameter is being passed, you can "hide" them by removing text in the prompt for those parameters on the sub reports. This way you can pass the parameters by setting their value to always be null, but the user cannot see or change them.

    Hopefully that makes sense, but if not, just let me know.
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

+ Reply to Thread

Similar Threads

  1. Passing value between parent and IFrame
    By richyrich in forum .NET Development
    Replies: 5
    Last Post: August 13th, 2009, 12:33 PM
  2. need help passing value for update
    By Rebelle in forum ASP Development
    Replies: 10
    Last Post: July 7th, 2009, 05:04 PM
  3. drill down to a new page
    By karenros in forum SQL Server Reporting Services Help
    Replies: 1
    Last Post: June 10th, 2009, 03:01 PM
  4. How to dynamic date values in the Report Parameters?
    By harish in forum SQL Server Reporting Services Help
    Replies: 4
    Last Post: May 1st, 2009, 01:04 AM
  5. if report query is empty, close report
    By tuxalot in forum Microsoft Access
    Replies: 1
    Last Post: March 29th, 2009, 03:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO