Hi,
Using CR8.5, reporting off SQL 7.0. I have a field ISActive which is boolean (-1 or 0). I want to create a parameter in which the user will be able to select Active, Not Active or Both and then select records based on their selection.
Thanks in advance!!!
I am guessing here; but could you not set it up as a parameter? in the default values window you can have the (-1) (0) and (-1 and 0) as the actual options, then set up the description for each as ACTIVE / NOTACTIVE / BOTH respectively... then you can choose which way the users see it in parameter box itself. (either by value, description or both)...
then inside the record selection add:
{ISActive} = {?parameter title}
Thank you for your response.
The problem is the record selection formula.
It will not evaluate the expression (-1 and 0) since it is a boolean. I guess what I need is a formula like if Active select active records, if not active select NotActive records and don't perform the record selection (ie: select all records) if Both. I don't even know if this is possible.
if {?parm}= "Both" then {table.Booleanfield} in [0,-1] else
If {?parm} = "Active" then
{table.Booleanfield} = -1
else
{table.Booleanfield} = 0
Mike
If you're not part of the solution, you're part of the precipitate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.