Configure scanned reports

Top  Previous  Next

A feature of Crash Magic is the ability to display images or reports to users within the ClickOn report to a Crash Magic user. Clients that store this information in the database will have access to  this ability through the ClickOnImage query, and no additional setup is required. Clients that store these items in directories must configure Crash Magic to access these items in their server environment using the following tasks

 

Before beginning users should make sure that any folders to be added have the correct security permissions for Crash Magic to access the files. This should be provided by your server administrator.

 

Allowing users to access images and reports requires four configuration tasks. The first task is to locate the default .options page of your .shared user. The second task is to define the image folder locations in Crash Magic. The third task is to locate the calculated fields for the configuration in use. The last task is to define an expression in a calculated field for selecting the correct image.

 

The following examples define how to access the sample reports that ship with the Crash Magic configuration. Clients will need to modify these items to access their own collision records through Crash Magic.

 

The first task is to find the Default .options information.

1.Log into Crash Magic as group admin under the user group that you would like to add images to.
2.Click on the + sign next to the .shared user under the user group to be changed.
3.Click on the + sign next to the .options.
4.Click on the Default under the .options.
5.Click on the green Settings tab to display the Default .options settings.

 

Define the folder locations that store the images:

1.With the Settings tab of the Default .options open, enter a name in the New Location Name field of the Crash Magic folder(This name is how the location will be referenced by Crash Magic. For this example we will use "SampleReports".).
2.Click on the Add button to your new folder location name.
3.Change the name of Location in the folder path of the text box to the full path where your images are stored(C:\Program Files\PdMagic\CrashMagicOnlineAlt\Bin\ProgramResources\Samples\Reports is the location of the default sample report images).
4.Click the blue summary tab to save the location.

 

Locate the calculated fields specific for your configuration.

1.Log into Crash Magic as group admin under the user group that you would like to add images to.
2.Click on the + sign next to the .shared user under the user group to be changed.
3.Click on the + sign next to the calculatedfields.
4.Click on the U_UserSpecific calculated field.

 

A calculated field must be created that can determine the name of the file to be used.

1.With the U_UserSpecific calculated fields selected click on the green settings tab(Pd' Programming recommends that the Calculated field be copied to a user for editing and testing before being added to the user group. This will allow a single user to test the changes without affecting the group).
2.Click the green plus symbol to add a new calculated field.
3.Enter a name in the field name box to describe the image.
4.Enter an expression to call the image( Example binaryfilecontent("SampleReports", "Report_" + STRING(DAY(_DATE),0) + ".jpg" This example will look for reports in the defined SampleReports location using the name Report_<Day of month the crash occured>.jpg. This means that if you click on a collision that occurred on the 26th of the month Crash Magic will look for a file named Report_26.jpg. The calculation will need to be adjusted for the specific names of the files used. For example changing the file name of the binaryfilecontent function to _CASEID + ".jpg" will cause Crash Magic to look for a file with the name <CaseId>.jpg. ).
5.Exit Crash Magic to save the settings.

 

These steps will allow users to select the image fields and set the display options.