Skip to main content

Save a script

How to save a script

Updated over 2 weeks ago

Once the script has been created and tested by the WageEasy Development team, the file will be attached to your existing case. The format of the file will be *.txt.

  1. Go into your case under attachments, right click on the attachment, and select Save As. Save the document into your My Documents or Desktop, or C:/Program Files/Wage Easy Payroll folder, or any easily accessible location.

  2. Once the document has been saved to your selected location, go to that directory and locate the script. Right click on this script document and Open With, Notepad.

  3. Identify the section near the top that indicates the Set Up required. Identify the phrase of Add a new script item as or Placement and make a note of the items it is required to be set up as.
    e.g.: TAwardInterpreter.BeforeExecute

  4. The script in its entirety needs to be copied; highlight all the lines in the script and Copy.

  5. Open WageEasy and go to Setup, Awards, Select an Award, Edit, and select Scripts (Bottom left), and again Scripts.

  6. Click on the Add button, and the Set Up box will appear (Add Script Event box).
    Using the drop-down arrow at the end of Interpreter, select the option that was identified from the Add a new script item as or Placement (Step 3 above). Using the drop-down arrow at the end of Event Name, select the option that was identified from the Add a new script item as or Placement (Step 3 above).

  7. i.e., If the script that you received from WageEasy has TAwardInterpreter.BeforeExecute in the in-Placement line, TAwardInterpreter would be selected as the Interpreter option. BeforeExecute would be selected as the Event Name. Select OK.

  8. Double click on the line with the Red dot and the script page (Script Editor), where the script is to be loaded, will open up.

  9. On this Script Editor page, highlight any wording already there, and then right click and select paste to copy the script information (which was copied at step 4 above) from the Notepad document onto the Script Editor screen.

  10. Once the script is pasted, the script must now be compiled. To compile the script, click on the Close button (which looks like a door).

  11. Select Yes, to the Do you want to compile the script? message. The script should now compile and show Error: None. Click OK.

On the Scripting page, the script detail will also now be present with a green dot.
​
If the script has a yellow dot after compiling it, the script simply needs to be enabled by right clicking on the line next to the yellow dot and selecting the Enable option.
​
If there is an error present, close out of WageEasy completely after clicking on the OK button first. Once you close out, go back to Awards and into the relevant Award and down to scripts and double click on the red dot again to recompile.

Please continue selecting your next Award and follow the same steps. You may find that you will have to close out of WageEasy and reopen it to compile the script in the next award.

Note: You will need to load the script into each of the Awards that require the conditions of the script.

Did this answer your question?