Manual:Reports

From Winswimwiki

Jump to: navigation, search

The objective of Reports is to provide team, meet and analysis reports.

Contents

Crystal Reports

Lists

Pre-Meet

Post-Meet

Analysis

Adding a Report to Language.xml

If you created a new report called "newreport.rpt", you would save the file in either the "\1033\" folder or in the application folder. Winswim searches the application folder before the "\1033\" folder for searching for the language.xml or reports, so you can replace existing reports there without overwriting the original report.

To add "newreport.rpt" to the menus, you would edit the "language.xml" file with Notepad.exe that comes with MS Windows and insert the shaded lines. The <newreport> is the DOS filename without the extension, text within the <title> nodes is the report menu and the number after <process> is the processing Winswim does to create the file used by the new report. See "Definition of the Process Steps" for more information on what number to use.

Language.xml File

After making the change to the "language.xml" file you need to then open up WinSwim and verify that you see the new menu change. There is a limit of 20 reports per section, so if you create too many new reports there will be an error displayed in the menu or the menu item will not be displayed.

Adding Custom Reports

Another approach to adding custom reports is to put all the new reports into the \custom\ folder under the application folder were Winswim.exe is located.

Custom Folder Location

Put every custom Crystal Report (.RPT) file into this folder and create a XML file with the same name the report. Therefore, if you had a ActiveRosterScratchListbyAgegroup.rpt file you would also have a ActiveRosterScratchListbyAgegroup.xml file.

The format of the XML files is as you see below as a most complex example. The <sql1> & <sql2> elements are optional and just showing a more complex example. The <Reports><Custom> elements are required and the next node <Pre-Meet> is user defineable. WinSwim will support up to 5 of these user defineable sections of reports where reports with alike sections are grouped together. The next child node, <ActiveRosterScratchListbyAgegroup> is the name of the Crystal Report without the extension of .rpt. It contains the child nodes <title> and <process>.

Custom XML File

A sample of what the menus could look like with a some custom reports is shown below.

Custom Report Menus

Adding Custom Labels

Adding a custom label is the same as the instructions for a Adding Custom Reports with the exception that the XML elements should be <Labels><Custom> instead of <Reports><Custom>. These Crystal Reports are viewable in using the menus Meet > Print Labels & Deck Cards.