Info | ||
---|---|---|
| ||
Here's what you will have after completing this guideline:
|
...
- Once opened in a text editor, copy the script text and paste it into the corresponding file from under the 'Workflow' folder in the SIL Manager.
- Hit '⌘ + f' (for Mac) to use the search and type customfield_XXXXX. There should be 5 items found.
Click on the 'SIL Aliases' tab on the right. Then, for each of the custom fields from the code lines below, find their ids and swap with XXXXX in the script code.
Code line SIL alias date start = toTimeZone(customfield_XXXXX, "GMT+1")
startDate a.typeId = types[customfield_XXXXX].id
absenceType a.startDate = formatDate(toTimeZone(customfield_XXXXX, "GMT+1"), dateFormat)
startDate a.endDate = formatDate(toTimeZone(customfield_XXXXX, "GMT+1"), dateFormat)
endDate a.comment = customfield_XXXXX
reason
For example, for Start date, this should look like below.Once you have these XXXXXs all swapped with custom field ids, save the script.
You should be presented with a green 'Save done' text afterwards.
validator.sil (download file)
- Once opened in a text editor, copy the script text and paste it into the corresponding file from under the 'Workflow' folder in the SIL Manager.
- Make sure to save the changes.
You should be presented with a green 'Save done' text afterwards.
...