Home      Ask a Question      My Stuff      Help   
  
Scripting - Downloading
There are scripts that can be assigned to only work when downloading activity reports. This would help if you needed just certain data to be exported or data from a punch to be edited on export. A sample script is below:

if (downloading = true)

From this point you would need to identify what it needs to apply to and what needs to be done:

if ((downloading = true) and (department = "Salary"))
{
payrate = 0;
}

So in the above example it states that if you are downloading a report and an employee is in the Salary department (department is set in Employee Setup) assign that employee a $0 payrate in the download file.

We can also change the data on export. This usually happens when the client wants something on the time card like a name but the export needs that name to resolve to an actual code. Below is an example of this:


if (x = "01" and downloading = false)
{
x = "Server";
}

What the above does is say that if you are NOT downloading than change any entry at the clock prompt (x) of "01" to "Server". This means that if you are downloading or exporting punch data to run in payroll it will not export as "Server" but "01" as downloading would equal true and would be contrary to our script.

ID
210
Category
Training
  FAQ's
Date Created
3/3/2008 3:17:09 PM
Date Updated
8/4/2011 9:40:27 AM
Back to Search Results