9/23/2013

Special Time Clock Script (ZPSQL)

In several of the screens that track inspection you can launch a Time Clock box that lets you fill in the Inspection Time field by selecting a pre-defined value from a list. Recently a customer asked if there was a way to customize the time options offered in the Time Box list. Now you can by creating a special script file that is editable in the User Defined Scripts Screen. The file should be called script_timeclock.txt and the format is simply a series of time values separated by commas.  A example script might be:

AM 08:00,AM 08:30,AM 09:00,AM 09:30,AM 10:00,AM 10:30,AM 11:00,AM 11:30,PM 12:00,PM 12:30,PM 01:00,PM 01:30

Whenever the Time Box is launched it looks to see if the a script file exists before either loading that script or defaulting to it's own list of times. You can create this text file yourself and place it in the main installation folder or download a starting script from our web site at Time_Clock_Script. Either way you can edit the list in the User Defined Scripts Screen to make it suit your needs.


Special Script for Renaming Application Buttons (ZPSQL)

You can add a special script file to your installation folder that allows you to rename the Application Buttons that appear at the bottom of the Property Screen. This feature has existed for a while but I have changed the naming scheme of the files so that now the text can be easily edited in the User Defined Script Screen. By default there are four Application Button categories that each have five pre-defined  buttons. The four groups are Zoning, Building, Housing and General. When the screen switches categories it looks to see if a script file exists for that category and uses the new button names if it is found. Each category has it's own script files. The file names are script_property_btnzoning.txt, script_property_btnbuilding.txt, script_property_btnhousing.txt or script_property_btngeneral.txt. A look at the Zoning button script shows what the text would look like:

%Zoning%Violations%Amend%Non-Conform%Appeals%

You can simply edit the names in between the percentage signs to change the name as it appears on the screen. The format is simple enough that you could create the text file yourself or you can download the set from our website at App Button Scripts. This file contains several files but you only need to copy the one you want to change into your main installation folder. It will then appear as choice in the User Defined Scripts Screen where you can edit it.