This section describes how you can use PR-Tracker to collect problem report data from customers using a web browser. This functionality is useful for beta testing and customer service purposes.
Included with PR-Tracker is the file ProblemReport.asp. This file is installed in the PR-Tracker\ASP directory along with prtracker.asp which is used as the interface for PR-Tracker Web Client. When ProblemReport.asp is hosted on your website, your customers can use it to enter problem reports directly into the PR-Tracker database.Modifying ProblemReport.asp
The ProblemReport.asp file shipped with PR-Tracker is a rough draft of the webpage you will ultimately need to collect problem report data from your customers. Without modification, ProblemReport.asp will insert the data entered directly into the DEMO project instead of the project you want it to. A minor change to the ProblemReport.asp is needed to insert data into the project you need. This change, along with other types of changes you will probably need to make are described below. We recommend that you copy ProblemReport.asp and modify the copy. This way the webpage with your modifications won't be over written when you upgrade to the next version of PR-Tracker.
To edit ProblemReport.asp, open the file using Windows Notepad, Visual Interdev, or any program which can be used to edit active server pages.
Change the default project
Locate the line of code where constant PROJECT_DIR is set. Note the value is set to "DEMO". Change this setting to the name of the PR-Tracker database subdirectory containing the project that you want to record data in.
Changing the choices in the Product drop down combo box
Locate the lines of code where PRODUCT_CHOICE is set. Edit the PRODUCT_CHOICE(n) settings to be what you want them to be. Once you have typed in your choices, resize PRODUCT_CHOICE be editing the DIM statement. Likewise, the default choice for the System field can be changed by editing OS_CHOICE.
Changing the default Priority
By default, problems report using ProblemReport.asp have a default priority of 2. To change the default setting, change the constant setting for DEFAULT_PRIORITY. You can change the default values for PR-Tracker fields Status, Problem Type and Method by changing the ProblemReport.asp constant settings for DEFAULT_STATUS, DEFAULT_PROBLEM_TYPE and DEFAULT_METHOD, respectively.
Setting values of PR-Tracker custom fields
Modifying ProblemReport.asp to set values of PR-Tracker custom fields is more complicated than all of the above requires an understanding of the format of .PR files which are used to store problem report data. You can inspect a .XML file with Windows Notepad or any other text file editor.
Part of the output of ProblemReport.asp is a .XML file. The .XML file output is constructed by function BuildPrData(). You will have to add a line of code to BuildPrData() for the custom field data. By tracing the use of variable strDescription through ProblemReport.asp, the other changes you need to make should be obvious.
Bug tracking doesn't have to be complicated | Help | Site Map