Crystal Reports Setup
Table of Contents 2 Table of Contents Crystal Reports Setup... 3 Database Connection... 3 Adding Parameters (Case Specific)... 5 Adding Parameters (Not Case Specific)... 8 Client Profiles Setup... 11 File Locations... 11 Crystal Reports Setup... 12 Adding Parameters (Not Case Specific)... 14 Running Crystal Reports Outside of a Case... 16 Running Crystal Reports Inside of a Case... 17
Crystal Reports Setup Database Connection 3 Crystal Reports Setup Database Connection Please note: This section gives an overview of steps necessary to create a Crystal report that will link with Client Profiles. Please refer to the Crystal Reports help section for more detailed instructions on creating reports. To add tables to a report you will need to select the Make New Connection option under the OLE DB Section and choose the Add button. Next, choose the Microsoft OLE DB Provider for SQL Server and choose Next.
Crystal Reports Setup Database Connection 4 Enter the name of the SQL Server in the server name field and then enter a valid login into the Client Profiles server for the User name and Password fields. Next, enter CPSQL for the database on the server field. Choose to Test the connection and select okay. You will then have a list of tables and views from the database to select from. Select the appropriate tables and then go through the report creation process. Please note: A database diagram of all of the available tables is available by contacting the Client Profiles technical support department.
Crystal Reports Setup Adding Parameters (Case Specific) 5 Adding Parameters (Case Specific) Please note: Case Specific reports are reports that will pull information for a single case and will be run from the Summary Screen of the case. Go to the Field Explorer box and choose to Add a New Parameter. Enter Case_sk for the name of the Parameter and use the same name for the Prompting text. Enter Number for the Value Type. Select the Set default values button.
Crystal Reports Setup Adding Parameters (Case Specific) 6 Select cases for the Browse table field. Select case_sk for the Browse field. Select OK. Select OK again.
Crystal Reports Setup Adding Parameters (Case Specific) 7 Select the Select Expert from the Reports menu. Select New. Select the case_sk field from the cases table. Choose is equal to from the drop down list. Choose the parameter {?case_sk}.
Crystal Reports Setup Adding Parameters (Not Case Specific) 8 Adding Parameters (Not Case Specific) Please note: Parameters in Crystal Reports can be used in conjunction with search tools in Client Profiles to easily retrieve desired results. Go to the Field Explorer box and choose to Add a New Parameter. Enter the name for the Parameter and use the same name for the Prompting text. Please note: The name used here will be used when linking the report to Client Profiles. Enter the appropriate selection for the Value Type based on the entries that you are filtering. Place a check in the Allow multiple values checkbox. Select the Default Values button.
Crystal Reports Setup Adding Parameters (Not Case Specific) 9 Select the appropriate table in the Browse table field. Select the appropriate column for the Browse field. Select OK. Select OK again.
Crystal Reports Setup Adding Parameters (Not Case Specific) 10 Select the Select Expert from the Reports menu. Select New. Select the desired column from the appropriate table. Choose is equal to from the drop down list. Choose the parameter that was setup previously.
Client Profiles Setup File Locations 11 Client Profiles Setup File Locations From within Client Profiles go to Administration\System Setup\File Locations. The Reports entry should be set to something like \\Server\CPShare\CPWin\Reports where Server is the name of the server where the CPShare directory is stored. Next, either through My Computer or Windows Explorer, verify that the Reports directory exists. If not create a new folder under the CPWin directory named Reports. Also, you will need to add two folders inside of the Reports directory. (CM for Case Management reports and ACCT for Financial Management reports)
Client Profiles Setup Crystal Reports Setup 12 Crystal Reports Setup Go into Administration\System Setup\Crystal Reports Setup. To add a report, first save the report created under the CPWin\Reports directory making sure the option in Crystal Reports for Save Data with Report is not checked. Please note for Case Management Reports save the file under CPWin\Reports\CM and for Financial Management Reports save the file under CPWin\Reports\ACCT. Within each of these sections will be categories that reports can be classified under. Please note: other categories can be added by going under Administration\System Setup\Pick Lists and adding new entries under the RPTCM - Case Mgmt. Report Categories and RPTFM - Fin. Mgmt. Report Categories. Select a category and choose the New button.
Client Profiles Setup Crystal Reports Setup 13 Report ID: This field is generated automatically by Client Profiles after a new report is added. Crystal Reports Version: Select the version of Crystal Reports used to write the report. Report Type: Select either Case Management or Financial Management. Maincategory: Select the appropriate category from either the Case Management or Financial Management sections. Filename: Enter the file name of the report. Full Path: Once the file is saved under the Reports directory and the file name is entered you will see the green light icon and the full path to the report file. Please note: If you see a red light icon and a message that the report does not exist verify that the file name is entered correctly and that the file has been saved in the proper directory. Report Description: Enter a description of the report. Default Title: Enter the title of the report. Report is for an Individual Case: This box is used for reports that pull information for only one case and will be run from the Summary screen of the case. Parameters to be passed into the report: Please note: Please see Client Profiles\Adding Parameters below for instructions for adding parameters.
Client Profiles Setup Adding Parameters (Not Case Specific) 14 Adding Parameters (Not Case Specific) There are different parameters that can be added to a report to filter down the list of entries that the report returns. Client Profiles provides different search tools that can be used in conjunction with the Crystal Report parameters. To add a parameter select the Add Parameter button and enter the name of the parameter as it is setup on the Crystal Report. Next, add one of the following functions which can be used to perform the lookups: uf_lookup_user(multi,wintitle) This lookup function will allow the user to select one or many of the active firm users. Parameters: Multi - select one or many..'s' or 'M' wintitle - window title for the user selection window Example Call: uf_lookup_user(s,select Managing Attorney) uf_lookup_cardfile(multi,wintitle) This lookup function will allow the user to select one or many cardfile entries. Parameters: Multi - select one or many..'s' or 'M' wintitle - window title for the cardfile selection window Example Call: uf_lookup_cardfile(s,select Expert Witness) uf_lookup_group_item(groupcode,multi,wintitle) This lookup function will allow the user to select one or many cardfile entries. Parameters: Groupcode - Default group code selection..can be left blank Multi - select one or many..'s' or 'M' wintitle - window title for the cardfile selection window Example Call: uf_lookup_group_item(ctype,s,select Case Type) uf_lookup_case(multi) This lookup function will allow the user to use the standard case search to select cases. Parameters: Multi - select one or many..'s' or 'M' Example Call: uf_lookup_case(m)
Client Profiles Setup Adding Parameters (Not Case Specific) 15 uf_lookup_lawtype(multi,includequotes) This lookup function will allow the user to select lawtypes. Parameters: Multi - select one or many..'s' or 'M' IncludeQuotes - 'Y' or 'N' - Optional - determines if single quotes are put around each value Example Call: uf_lookup_lawtype(m,n) uf_lookup_office(multi) This lookup function will allow the user to select from a list of the firm offices. Parameters: Multi - select one or many..'s' or 'M' Example Call: uf_lookup_lawtype(m) uf_get_string(wintitle) This lookup function will allow the user to enter a string. Parameters: wintitle - window title for the string entry window Example Call: uf_get_string(enter input string) uf_get_date(wintitle) This lookup function will allow the user to enter a date Parameters: wintitle - window title for the date selection window Example Call: uf_get_date(enter starting date)
Client Profiles Setup Running Crystal Reports Outside of a Case 16 Running Crystal Reports Outside of a Case To run the reports go to Administration\Reports\Crystal Reports. Select the Report from the list and choose View Report.
Client Profiles Setup Running Crystal Reports Inside of a Case 17 Running Crystal Reports Inside of a Case From the Summary Screen of the case select the Crystal Reports icon. Select the correct report and choose View Report. Please note: Only reports that have Report is for an Individual Case checked in the setup will show on this list.