Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus: Referencing Fields in Employee Setup in a Script
To have a script only apply to certain employees, you can reference a field in their employee setup. For scripting, how we reference a field in Employee Setup has been changed due to how TimeWorks Plus now handles fields which is different from TimeWorks. When ever one needs to reference a field in Employee Setup one needs to enter in the "employee." prefix. Below are a few examples:

TimeWorks: department
TimeWorks Plus: employee.department

TimeWorks: payrate1
TimeWorks Plus: employee.payrate1

TimeWorks:

if (location = "10")
{
payrate = payrate1;
}

TimeWorks Plus:

if (employee.location = "10")
{
payrate = employee.payrate1;
}

You may have noticed that I did not enter in the "employee." prefix in the TimeWorks Plus script for the first mention of "payrate". This is because that payrate references the time card and not a field in Employee Setup where as "employee.payrate1" does (the Pay Rate 1 field in Employee Setup).


ID
825
Category
<Unassigned>
Date Created
2/1/2013 6:31:48 AM
Date Updated
10/29/2014 10:57:57 AM
Back to Search Results