locked
IF none value in Dropdownlist then set null value by default RRS feed

  • Question

  • IF no value in Dropdownlist then set null value by default but dont show this error, Bcoz this is optional field.

    Expected Result:In report if any fields are marked as optional,then at the run
    time not any validation should be display.

    Actual result:In report if user unchecked the optional fields and click on
    "View report" button,error message is display .


    Wednesday, February 8, 2012 4:50 PM

Answers

All replies

  • Set the default value:

    Wednesday, February 8, 2012 5:20 PM
  • But my requirment is select multipl value in dropdownlist and get value from Query (SP).

    Wednesday, February 8, 2012 5:31 PM
  • In that case modify your SP to include "ALL" or "NA" option (by using union) and then in avaliable value tab select your DS pointing to SP and in default value set NULL as the default value. By this way the default value will always be selected. Note "ALL" will be the text while NULL will be the value

    ex:

    Select "All" Label,NULL Value

    Union

    Select a label, b Value from table1 .....rest of your SP


    Wednesday, February 8, 2012 5:36 PM
  • yes 100% right... I have done before this post...but problem is that when user uncheck the selected value then got same error.
    Wednesday, February 8, 2012 5:44 PM
  • How can i handle such type of error.
    Thursday, February 9, 2012 10:05 AM
  • Hi Ramakant

    You can get more idea on below thread. Hope this will help you.

    Null Value Not Appearing in SSRS Multi-Select Parameter List

    Suhas


    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.

    • Proposed as answer by Sandip Shinde Thursday, February 9, 2012 2:33 PM
    • Marked as answer by Elvis Long Monday, February 20, 2012 9:19 AM
    Thursday, February 9, 2012 1:57 PM