Adding Selectors to RescueNet Reports - ZOLL Data Systems
Adding Selectors to RescueNet Reports - ZOLL Data Systems
Adding Selectors to RescueNet Reports - ZOLL Data Systems
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
D o c u m e n t a t i o n<br />
RestrictByField=code<br />
WhereClause=dtype=11<br />
RestrictionWhereClause=<br />
<strong>Adding</strong> <strong>Selec<strong>to</strong>rs</strong> <strong>to</strong> <strong>RescueNet</strong> <strong>Reports</strong><br />
Guidelines for Editing .IN2 Files<br />
Revision:1.0<br />
[Selec<strong>to</strong>r8] makes use of a table (descriptions) that s<strong>to</strong>res values for a variety of fields in<br />
ePCR. The data that we’re looking for in this report is the “Status” of the trip. In the<br />
descriptions table all of the statuses are identified by a dtype (description type) of 11. With<br />
this in mind, we use the WhereClause entry and set the dtype <strong>to</strong> 11. This instructs the selec<strong>to</strong>r<br />
dialog box <strong>to</strong> only show the statuses for the end user <strong>to</strong> select. Once the end user makes their<br />
selections and runs the report the RestrictByField sends over all of the appropriate code values<br />
<strong>to</strong> the Crystal Report.<br />
[Selec<strong>to</strong>r10]<br />
Name=Pick-up time<br />
Selec<strong>to</strong>rType=TimeSelec<strong>to</strong>r<br />
ReportField=Trips.putime<br />
The reason that [Selec<strong>to</strong>r10] is so simple (three entries) is because it doesn’t need <strong>to</strong> pull any<br />
information out of the database <strong>to</strong> display the selec<strong>to</strong>r dialog box <strong>to</strong> the end user. The<br />
TimeSelec<strong>to</strong>r simply displays a control that allows the end user <strong>to</strong> pick specific times and then<br />
the ReportField entry sends that information <strong>to</strong> Crystal where the restriction is executed<br />
against the Trips.putime field.<br />
Dispatch<br />
Sample #1 (\Dispatch\Performance\Response times\AVRSPDRV.IN2)<br />
[Selec<strong>to</strong>r1]<br />
Name=Company<br />
Selec<strong>to</strong>rType=SmallSelec<strong>to</strong>r<br />
DbTable=companies<br />
DisplayField=name<br />
ReportField=companies.name<br />
RestrictByField=name<br />
WhereClause=status > -1<br />
RestrictionWhereClause={companies.status} > -1The [Selec<strong>to</strong>r1] sample above illustrates the<br />
SmallSelec<strong>to</strong>r with some restrictions. The DbTable “companies” contains a list of companies<br />
that include a name, status and code.<br />
You will notice that a WhereClause has been specified that filters the selec<strong>to</strong>r list that is<br />
displayed. The selec<strong>to</strong>r list that is displayed in <strong>RescueNet</strong> Reporting will contain a list of