Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleConfig summary

Here's what you will have after completing this guideline:

  • SIL aliases mapped with custom fields;
  • Workflow and Absences scripts ready. 

...

  1. 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. 

  2. Hit '⌘ + f' (for Mac) to use the search and type customfield_XXXXX. There should be 5 items found.  
    Image Modified
  3. 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 lineSIL 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. 
    Image Modified

  4. Once you have these XXXXXs all swapped with custom field ids, save the script.
    Image Modified

    You should be presented with a green 'Save done' text afterwards.
    Image Modified

validator.sil (download file)

  1. 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.

  2. Make sure to save the changes.

    You should be presented with a green 'Save done' text afterwards.

...