Need Help in SSRS Report

  • Hi Everyone,

    Need help in SQL server reporting Services.

    I have input parameters like

    BachNumFrom, BatchNumTo, StartDate and Enddate

    I have Dropdownloist which has values PaymentDate and BatchNumber

    When I select PaymentDate in dropdown list I need to Enable Start Date and End date parameters and disable the BatchNumFrom and BatchNumTo parameters.

    When I select BatchNumber in dropdown list I need to Enable BatchNumFrom and BatchNumTo parameters and disable the Start Date and End date parameters .

    Can anybody please let me know how to do in SSRS report

    Thanks in Advance.

    Kaladhar

  • I don't think you can enable/disable parameters in SSRS. You could set the parameter values to a specific values like 'N/A' or something like that.

  • Hi Jack,

    Thank you very much

    can you please let me know the exact process to

    set the parameter values to a specific values like 'N/A' or something like that.

    if you explain some example its very greatful

    Thanks

    Kaladhar

  • What you can do is, modify your dataset by adding the next to your original select statement:

    select '-Not Available-' as BatchNumFrom, '-Not Available-' as BatchNumTo

    union

    select ..........[your original selection]

    Make sure that the name of your selection matches with the original selections.

    Then edit your query like (change what you need)

    where BatchNumFrom = @ParameterName and BatchNumTo '-Not Available-'

    Do this for all your parameters you want to 'disable'.

    Now when you run your report, you're able to select the -Not Available-' for your parameter.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply