could be a design choice, but i couldn't find it covered anywhere.
With a report I have two parameters, both set as optional, one with a default value
Expected behaviour - when report is run the default value is used for the parameter
Actual behaviour - if all the parameters for the report are optional when run it uses empty values instead of default values. with select 'dbr.parameters.show'; the default value is populated into the parameter at the top of screen and clicking run report without changing anything gives a different result set.
I have a list of dates and wanted to (with one report)
1. only load all the records if asked to as it is a large result set - this works but i don't want it be default
2. default to this year - so i have a default parameter query that works
3. allow all input parameters to be null (or empty char strings) and have report select all records - this works with an or in where clause -deletedate is table column and inputyear is parameter. this also works
( year(deletedate) = inputyear OR CHAR_LENGTH(inputyear)=0 )
thanks