Guest_imported
New member
- Jan 1, 1970
- 0
Hi
Is there a way to pass the report parameters to an SQL query within a Crystal Report? I need to be able to perform this feature because the recordset that is returned from the server to the report contains too many records, which get suppressed by the selection formula one by one. This greatly slows down the report.
Here is what I mean by passing the parameters to the SQL query. Lets say that I have the following selection formula
{_TELMASTE_.DATE OPEN}>={?FromDate} and
{_TELMASTE_.DATE OPEN} <={?ToDate}
and the following SQL query (the two are not in sync with each other)
SELECT
ATELMASTE_."Sequence", ATELMASTE_."Note", ATELMASTE_."DATE OPEN", ATELMASTE_."CLOSED ON", ATELMASTE_."DESCRIPTION", ATELMASTE_."RESOLUTION",
ACUSTOMER_."FNAME", ACUSTOMER_."NAME",
ASUBJECTS_."DESCRIPTION"
FROM
"_SMDBA_"."_TELMASTE_" ATELMASTE_, "_SMDBA_"."_SUBJECTS_" ASUBJECTS_ , "_SMDBA_"."_CUSTOMER_" ACUSTOMER_
WHERE
ATELMASTE_."SUBJECT" = ASUBJECTS_."Sequence" AND ATELMASTE_."Client" = ACUSTOMER_."Sequence" AND ASUBJECTS_."DESCRIPTION" not like 'MSR%'
ORDER BY
ASUBJECTS_."DESCRIPTION" ASC,
ATELMASTE_."Sequence" ASC
Is there a way to pass the {?FromDate} and the {?ToDate} parameter values to the SQL query?
Any help regarding this issues is appreciated.
Thank you in advance
Eugene Kravchenko
Is there a way to pass the report parameters to an SQL query within a Crystal Report? I need to be able to perform this feature because the recordset that is returned from the server to the report contains too many records, which get suppressed by the selection formula one by one. This greatly slows down the report.
Here is what I mean by passing the parameters to the SQL query. Lets say that I have the following selection formula
{_TELMASTE_.DATE OPEN}>={?FromDate} and
{_TELMASTE_.DATE OPEN} <={?ToDate}
and the following SQL query (the two are not in sync with each other)
SELECT
ATELMASTE_."Sequence", ATELMASTE_."Note", ATELMASTE_."DATE OPEN", ATELMASTE_."CLOSED ON", ATELMASTE_."DESCRIPTION", ATELMASTE_."RESOLUTION",
ACUSTOMER_."FNAME", ACUSTOMER_."NAME",
ASUBJECTS_."DESCRIPTION"
FROM
"_SMDBA_"."_TELMASTE_" ATELMASTE_, "_SMDBA_"."_SUBJECTS_" ASUBJECTS_ , "_SMDBA_"."_CUSTOMER_" ACUSTOMER_
WHERE
ATELMASTE_."SUBJECT" = ASUBJECTS_."Sequence" AND ATELMASTE_."Client" = ACUSTOMER_."Sequence" AND ASUBJECTS_."DESCRIPTION" not like 'MSR%'
ORDER BY
ASUBJECTS_."DESCRIPTION" ASC,
ATELMASTE_."Sequence" ASC
Is there a way to pass the {?FromDate} and the {?ToDate} parameter values to the SQL query?
Any help regarding this issues is appreciated.
Thank you in advance
Eugene Kravchenko