Scripting - Tutorials & Tips

reportingdate Scripting Keywords

The "reportingdate" keywords are valuable scripting tools that can only be used in the following scripting boxes: SplitPostReportingDate Shift AddEntry PayRate Accruals Overtime "reportingdate" ...

Read Article

Scripts Based on Employee Start Date - TWP

This article is for altering time card data for employees have reached a set amount of days after their initial hire date. For example, after a 90 day review (from their hire date) they get a rate increase or g...

Read Article

Split Scripting - TWP

Splitting punches can be a useful tool for applying shift differentials or other premiums based on the time of day. For instance, if an employee earns a different pay rate for hours worked after 7:00pm, a split...

Read Article

Date, Time and Day Scripting - TWP

Scripting relies heavily on comparing and making calculations on dates and times. There are multiple ways to work with the date and time of a punch and this article is meant to be a reference article that expla...

Read Article

Value Keywords - cstr, int, val, cint

Scripting uses many different types of values and certain things can only be done with certain types of values. For instance, if you were doing math, you can't add the word "one" to the word "two" to get the wo...

Read Article

contains, within, left, right, mid Functions - TWP

"contains" With the "contains" word in scripting, we can determine if any part of a value matches another value. For instance, consider if contains was used in the following situation: ABCD contains A = true...

Read Article

addalert in Scripting

TimeWorksPlus uses a function called addalert in scripting to place a blue exclamation on the time card when a condition is met. This alert can also contain a message that is viewed when mouse cursor hovers ove...

Read Article

Ignore an Edited Punch in a Script (isedited) - TWP

By using the isedited keyword in TimeWorksPlus, it is possible to execute (or not execute) a script based on whether a manager has edited certain aspects of a punch. These scripts evaluate if the punch has been...

Read Article

concatenate Function - TWP

The scripting process can handle concatenation, meaning it can append characters together, such as adding something to the end of an Employee Setup identifier. For example, the following script can be used to ...

Read Article

Change How the Punch Date Appears

The punchdate, when referenced, is in a "YYYY-MM-DD" fashion. To change this to a more traditional format like "MM-DD-YYYY" for the purpose of showing the punch date in clock prompts or alerts, you can create a...

Read Article