Hi,
I have a Summary report and a Detail (drillthrough) report.
the summary report displays.
Summary report
Code Snippet
Adult | Male | Count
--
Yes | Yes | 50
Yes | No | 9
No | Yes | 20
No | No | 50
| 129
When the user clicks on the hightlighted count it links to the Details report displaying each of the records referenced.
The detail report uses 2 boolean parameters Adult & Male, this works perfectly for the first 4 lines displayed, however if the user clicks on the total value to display all the records, i'm unable to provide the NULL value.
Any ideas?
Hi,
This may be due to the way you pass parameters to the sub-report.
you may not get answers if you are not more specific.
How is the total item generated. Why use a NULL value instead of something like "ALL" or "%" when the user select the total.
This may be easier to catch in the sub or linked report, the sub report will easilly interpret LIKE '%' rather than some NULL value.
Please provide some more details.
Philippe
|||Hi,
The report queries against a database field that is a boolean but can accept a NULL value.
So i configured the recieving report to accept a boolean value "True, False & also Null".
If i used LIKE as the where criteria it obviously wouldn't be as efficent.
Regards
Ian
|||What about using a dropdown param (whether multi select or not, depending on your needs) rather than a boolean here? Provide a tinyint to your procedure, if you're using a procedure to receive the parameter values, in which one value (say, 2) represents null. Interpret the results of what you get as this parameter to build up your query -- you could interpret it as an IN() rather than as a LIKE, or as ORs if you prefer (although the ORs are probably going to be interpreted internally just like the IN).
One really good way to do this is to use ISNULL(TheField,2) in your WHERE condition...
The point is, the default parameter representation for booleans with those radio buttons (with or without null checkbox) is hokey to start with, why not just use a dropdown with labels you like to represent them and integer values underneath.
>L<
|||Hi Lisa,
Thank you for your input, that sounds like the way that i should have done it. i'll check out the dropdown options.
i would like a rant about the SRS report and boolean parameter at this stage....however i don't have the time or anyone else the want to read it. lol
cheers everyone.
ian
|||>> would like a rant about the SRS report and boolean parameterI have done this before and generally don't care whether anybody wants to read it when I'm in the mood to rant on this sort of topic -- although I blog the rant rather than posting to a forum in that case <g>.
In this case, I honestly think the rant would be misdirected. As I have said several times in posts on this forum (because it is NOT a rant <s>), the default parameter representation is just that: a default. You can hide this panel, present your own parameter interface, and pass params to the report. I think this is always what was intended. The default just had to be generic enough to work without any sort of business logic connection and was never expected to be "the interface that you presented in your polished application".
>L<
No comments:
Post a Comment