Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus: Scripting - Default Clock Prompts
Question
ID
955
Category
<Unassigned>
Date Created
7/3/2013 10:34:18 AM
Date Updated
2/23/2016 9:59:34 AM
How do I make it so that an empty clock prompt is a value from Employee Setup?
Answer
In TimeWorksPlus, you can set clock prompts to use Home Department or Location, but for any other field in Employee Setup, it has to be scripted.

For the purpose of this scripting example, we are using 'prompFieldName' to refer to the Field Name of the clock prompt. YOU MUST CHANGE THIS VALUE WHEN YOU WRITE YOUR SCRIPT. You would use the Field Name of your prompt.

You would place this script in the PayRate Script scripting rule.

if(promptFieldName = ""){
promptFieldName = employee.title;
}

This script puts the value of the Employee Title field in the prompt. However, you could use any value from Employee Setup. A list of Employee Setup keywords can be found here. TimeWorksPlus: Scripting Keywords
Back to Search Results