Here's a way to do it:
For my report I've created three datasets.
1) The first dataset, named 'Package' creates the parameter values, using UNION command to adjoin a '** SELECT ALL **' value to those obtained from a database.
SELECT '** SELECT ALL **' as PACKAGE
UNION
SELECT PACKAGE.PACKAGE as PACKAGE
FROM PACKAGE
order by PACKAGE.PACKAGE
2) The second dataset, named 'SelectAll' is used to populate the Default Value for the parameter.
SELECT '** SELECT ALL **' as PACKAGE
3) The third parameter, in this case named 'ChangedRequest', provides the select logic.
SELECT .....
FROM .....
WHERE PACKAGE.PACKAGE = @Package or '** SELECT ALL **' in (@Package)
order by PACKAGE.PACKAGE
No comments:
Post a Comment