Home      Ask a Question      My Stuff      Help   
  
TimeWorks: Scripting - Where do I Enter a Script?
Question
ID
348
Category
Training
  FAQ's
Date Created
1/13/2009 7:05:11 AM
Date Updated
8/13/2014 2:23:56 PM
I found a script I would like to use from the Knowledge Base but am unsure of where to enter it in the system?
Answer
Scripts can be entered in one of three locations depending on the type of script you were using:

1. Most general scripts are entered here Accountant Menu > Custom Processing / Rounding Rules using the link under the 'PROC. RULES' heading.

Once you click on the link it provides a small box to label the script you will be using and a larger box to enter the script. Pressing the 'Save' button at the bottom will save and apply the script you enter.

2. Rounding scripts are entered here Accountant Menu > Custom Processing / Rounding Rules using the link under the 'ROUND RULES' heading.

Once you click on the link it provides a small box to label the script you will be using and a larger box to enter the script. Pressing the 'Save' button at the bottom will save and apply the script you enter.

3. Some scripts can be entered in Employee Setup. Click on one of the employee's and you should see the field labeled 'Additional Options'.

It is mostly used for things like calculating overtime based on hours, days or on the week for that specific employee. Only one script can be entered here.

Area's 1 & 2 allow for multiple scripts to be entered. If a script is already in there and you need to add another one, you would usually just add it to the bottom just BE CAREFUL IN DOING SO! The reason being is that the scripting works in a top to bottom fashion. Meaning the top scripts will run first with the bottom scripts running last. So if you have similar scripts one script at the bottom could potentially override another that ran earlier at the top.

Some general 'Best Practice' guidelines to follow:

-It is always a good idea to copy and save scripts already in place somewhere else before adding anything new. Especially if there is a lot in there.

-It is always a good idea to use something like notepad to first write out the script before-hand and just cutting and pasting the script in once completed. You can write directly into the scripting window on the site but you could potentially lose your work if our site times out due to inactivity or you accidentally hit the back button on your web browser before you have a chance to click 'Save'.

==ALWAYS REMEMBER== scripts only change the way the original data is displayed or exported. It does not make any permanent changes to the original data. If you do not like what your script is doing you can always take it out and it will revert back to the original punch data.

Back to Search Results