there are multiple tables involved. I have if then statements choosing fields (to print) based on field data.
no math being done. what would I look for in questionable links?
IF {PJM_MASTER__JOB_CONTACT_LIST.Role} = "Project Manager" Then
(IF {ABM_MASTER__CONTACT_1.Type} = "Person" Then {ABM_MASTER__PERSON_1.Person_Name}
Else IF {ABM_MASTER__CONTACT_1.Type} = "Company" Then {ABM_MASTER__COMPANY.Company_Name})
This is another
IF {PJM_MASTER__JOB_CONTACT_LIST.Role} = "Project Manager" Then
(IF {PJM_MASTER__JOB_CONTACT_LIST.Phone} <> "" Then {PJM_MASTER__JOB_CONTACT_LIST.Phone}
Else
(IF {ABM_MASTER__CONTACT_1.Type} = "Person" Then {ABM_MASTER__PERSON_1.Business_Phone}
Else IF {ABM_MASTER__CONTACT_1.Type} = "Company" Then {ABM_MASTER__COMPANY.Primary_Phone}))
a 3rd.
If {PJD_DOCUMENT__DOCUMENT_CONTACT.Document_Index} <> 0 Then 1 Else 0
The biggest contributor to time is not passing the SQL to the database for processing. Check Database->Show SQL Query.
Everything in the record selection formula (report->Edit Selection Formula-Record and Group) should be reflected in the where clause of the SQL.
If you need help optimizing, share specifics such as versions of the software used (CR and database), and post the record selection formula(s) and SQL.
When I try database-show query I get the following error
could not open data folder, data folder does not exist, it is not a timberline data folder, or the current operator does not have access.
after that I get the following sql
tsControlData ({@tsDataFolder},"Name" ,"I" )
This is in the record selection but I don't see where it fits in as a where clause?
{PJD_DOCUMENT__SUBMITTAL.Submittal_State} = "Awaiting Receipt" and
{PJD_DOCUMENT__DOCUMENT_CONTACT.Document_Type} = tsCustomDescription ({@tsDataFolder}, 605, "" and
{PJD_DOCUMENT__DOCUMENT_CONTACT.Contact_Usage} = "Received From" and
{PJD_DOCUMENT__SUBMITTAL.Current_Revision_Sequence} = 1and
{PJM_MASTER__JOB.Job}={?Specific Job}
Sorry, I'm not familiar with that front end, I thought that you were using. The error message may have prevented some of it from showing, if you have performance problems I'd address it with your vendor, they may be using an SP or even a customized form of connectivity.
Sorry, I'm not familiar with that front end, I thought that you were using Crystal. The error message may have prevented some of it from showing, if you have performance problems I'd address it with your vendor, they may be using an SP or even a customized form of connectivity.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.