I'm using Crystal 8.5.
Below are 2 examples.
I have been trying to make #2 work:
Example #1
Report/Record Select Window
---------------------------
// ?TicketNos=74759
{Incident.Incident #} = {?TicketNos}
and
{Incident.First Name} = "Automated"
and
{Incident.Group Name} = "HELP DESK"
-----------------------------------------------------------
SQL Query
---------
SELECT
Incident."Incident #", Incident."Open Date & Time", Incident."Close Date & Time", Incident."Incident Description", Incident."Incident Resolution", Incident."Group Name", Incident."First Name", Incident."Full Name Assigned To", Incident."Subject ID", Incident."Subject Description"
FROM
"MagicTSD"."_SMDBA_"."Incident" Incident
WHERE
Incident."Incident #" = 74759 AND
Incident."First Name" = 'Automated' AND
Incident."Group Name" = 'HELP DESK'
ORDER BY
Incident."Incident #" ASC
**********************************************************************************************************************
Example #2
Report/Record Select Window
---------------------------
NumberVar i;
For i := 1 to ubound({?TicketNos})
Do ({Incident.Incident #} = {?TicketNos}
and
{Incident.First Name} = "Automated"
and
{Incident.Group Name} = "HELP DESK"
-----------------------------------------------------------
SQL Query
---------
SELECT
Incident."Incident #", Incident."Open Date & Time", Incident."Close Date & Time", Incident."Incident Description", Incident."Incident Resolution", Incident."Group Name", Incident."First Name", Incident."Full Name Assigned To", Incident."Subject ID", Incident."Subject Description"
FROM
"MagicTSD"."_SMDBA_"."Incident" Incident
ORDER BY
Incident."Incident #" ASC
###########################################################
I was wondering why I didn't get a WHERE clause with the 2nd example.
I'd like to pass a variable number of values in the parameter.
Below are 2 examples.
I have been trying to make #2 work:
Example #1
Report/Record Select Window
---------------------------
// ?TicketNos=74759
{Incident.Incident #} = {?TicketNos}
and
{Incident.First Name} = "Automated"
and
{Incident.Group Name} = "HELP DESK"
-----------------------------------------------------------
SQL Query
---------
SELECT
Incident."Incident #", Incident."Open Date & Time", Incident."Close Date & Time", Incident."Incident Description", Incident."Incident Resolution", Incident."Group Name", Incident."First Name", Incident."Full Name Assigned To", Incident."Subject ID", Incident."Subject Description"
FROM
"MagicTSD"."_SMDBA_"."Incident" Incident
WHERE
Incident."Incident #" = 74759 AND
Incident."First Name" = 'Automated' AND
Incident."Group Name" = 'HELP DESK'
ORDER BY
Incident."Incident #" ASC
**********************************************************************************************************************
Example #2
Report/Record Select Window
---------------------------
NumberVar i;
For i := 1 to ubound({?TicketNos})
Do ({Incident.Incident #} = {?TicketNos}
and
{Incident.First Name} = "Automated"
and
{Incident.Group Name} = "HELP DESK"
-----------------------------------------------------------
SQL Query
---------
SELECT
Incident."Incident #", Incident."Open Date & Time", Incident."Close Date & Time", Incident."Incident Description", Incident."Incident Resolution", Incident."Group Name", Incident."First Name", Incident."Full Name Assigned To", Incident."Subject ID", Incident."Subject Description"
FROM
"MagicTSD"."_SMDBA_"."Incident" Incident
ORDER BY
Incident."Incident #" ASC
###########################################################
I was wondering why I didn't get a WHERE clause with the 2nd example.
I'd like to pass a variable number of values in the parameter.