I am using CR9 with an Oracle 9i database.
I have a sub-report that displays comments from an Oracle view. Below is the code I have in the Record Selection Formula
(
{DCLS_REPORT_COMMENTS.TESTGROUPNAME} = {?Pm-DCLS_CULTRPT_MAIN_VW.TESTGROUPNAME}
)
or
(
{DCLS_REPORT_COMMENTS.FOLDERNO} = {?Pm-DCLS_CULTRPT_MAIN_VW.FOLDERNO} and
{DCLS_REPORT_COMMENTS.REPORTABLE} = 'Y' and
isNull({DCLS_REPORT_COMMENTS.CONTACTID}) and
isNull({DCLS_REPORT_COMMENTS.REPORTSECTION})
)
or
(
{DCLS_REPORT_COMMENTS.CONTACTID} = {?Pm-DCLS_CULTRPT_MAIN_VW.CONTACTID} and
{DCLS_REPORT_COMMENTS.REPORTABLE} = 'Y' and
isNull({DCLS_REPORT_COMMENTS.FOLDERNO})
)
The TESTGROUPNAME, FOLDERNO, and CONTACTID are passed from the main report.
When I run the report, no data shows up for the comments. If I run the sub-report by itself and show the SQL query, I see that Crystal has removed the parentheses around each of my "OR" conditions and just put an open paren at the beginning of the entire formula and a close paren at the end of the entire formula. This, obviously changes the entire meaning of the formula.
Is this normal Crystal functionality? I am fairly new to Crystal, but have a lot of experience with other report writers. How do I get Crystal to leave my selection formula alone?
Thanks for any help
I have a sub-report that displays comments from an Oracle view. Below is the code I have in the Record Selection Formula
(
{DCLS_REPORT_COMMENTS.TESTGROUPNAME} = {?Pm-DCLS_CULTRPT_MAIN_VW.TESTGROUPNAME}
)
or
(
{DCLS_REPORT_COMMENTS.FOLDERNO} = {?Pm-DCLS_CULTRPT_MAIN_VW.FOLDERNO} and
{DCLS_REPORT_COMMENTS.REPORTABLE} = 'Y' and
isNull({DCLS_REPORT_COMMENTS.CONTACTID}) and
isNull({DCLS_REPORT_COMMENTS.REPORTSECTION})
)
or
(
{DCLS_REPORT_COMMENTS.CONTACTID} = {?Pm-DCLS_CULTRPT_MAIN_VW.CONTACTID} and
{DCLS_REPORT_COMMENTS.REPORTABLE} = 'Y' and
isNull({DCLS_REPORT_COMMENTS.FOLDERNO})
)
The TESTGROUPNAME, FOLDERNO, and CONTACTID are passed from the main report.
When I run the report, no data shows up for the comments. If I run the sub-report by itself and show the SQL query, I see that Crystal has removed the parentheses around each of my "OR" conditions and just put an open paren at the beginning of the entire formula and a close paren at the end of the entire formula. This, obviously changes the entire meaning of the formula.
Is this normal Crystal functionality? I am fairly new to Crystal, but have a lot of experience with other report writers. How do I get Crystal to leave my selection formula alone?
Thanks for any help