Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

Need help in record selection

$
0
0

In my report, there is a parameter passing multiple string values (e.g. Chair-d, Table-F, Sofa-g, Table-f, Chair-D etc). When I filter the records returned from the SQL query, one column called PRODUCT is compared against this list of parameter value. So in my record selection formula, I coded it as follow:

(IF HASVALUE({?Product}) THEN

    (IF {?Product} = 'ALL' THEN

        TRUE

     ELSE

        ({Command.PRODUCT} IN ({?Product}) )

    )

ELSE true

)

 

Unfortunately, when there is only one parameter value 'Table-F', the report returned all rows with {Command.PRODUCT} = 'Table-F' or 'Table-f'.

How can I set in Record Selection formula to do an exact string compare in {Command.PRODUCT} IN ({?Product}) such that it will only return rows with {Command.PRODUCT} = 'Table-F' only ?


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>