troubleshooting Question

How do I create a CRYSTAL Report utilizing a command with parmlist

Avatar of paigea
paigea asked on
Java EECrystal Reports
4 Comments1 Solution383 ViewsLast Modified:
I need to create a Crystal Report -Error Report and use a command to select my data.  I need to use the command instead of select expert as I need this performed on the server because there are timeout issues.  I need to select errors within a parameter start date and end date and also only companys that are selected via the parm.  Below I have attached the sql that I am trying to get to work in the command.  When I enter parameters in the command screen, they do not stay?? Also I am not quite sure how to code using the parameters within the command.
Command code
SELECT  "TABLE"."IVR_CALL_HEADER"."START_DATE", 
        "TABLE"."IVR_META_ERROR"."ERROR_ID"
      ,COUNT("TABLE"."IVR_META_ERROR"."ERROR_ID") AS ERROR
 
  FROM "TABLE"."IVR_ERROR_EVENT"
      ,"TABLE"."IVR_META_ERROR" 
      ,"TABLE"."IVR_EVENT"      
      ,"TABLE"."IVR_STATE"      
      ,"TABLE"."IVR_CALL_HEADER"
 
 WHERE "TABLE"."IVR_ERROR_EVENT"."META_ERROR_ID" = "TABLE"."IVR_META_ERROR"."META_ERROR_ID"
   AND "TABLE"."IVR_ERROR_EVENT"."EVENT_ID" = "TABLE"."IVR_EVENT"."EVENT_ID"
   AND "TABLE"."IVR_STATE"."STATE_ID" = "TABLE"."IVR_EVENT"."STATE_ID"
   AND "TABLE"."IVR_STATE"."CALL_ID" = "TABLE"."IVR_CALL_HEADER"."CALL_ID"
AND "TABLE"."IVR_CALL_HEADER"."START_DATE" IN (?STARTDATE) TO( ?ENDDATE)
(I am not sure how to accomplish the following)
AND iif({?Company}='All',TRUE,{?Company}={IVR_CALL_HEADER.APPLICATION_NAME})
    
GROUP BY   "TABLE"."IVR_CALL_HEADER"."START_DATE",
              "TABLE"."IVR_META_ERROR"."ERROR_ID"
Open in New Window Select All 
Tags:

Open in new window

ASKER CERTIFIED SOLUTION
Kurt Reinhardt
Sr. Business Intelligence Consultant/Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 4 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 4 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004