Javascript in i-net HelpDesk

Principle: The objects passed in a java.util.Hashtable (in code table) are java.lang.String values.

  • table thus contains all possible objects and the corresponding values, which can now be influenced via JavaScript. The available objects per trigger are listed below in a column overview. You can also print the objects yourself with the function print_Parameters(table, out). Depending on the program logic one specifies a condition (e.g. MAIL_IN or MAIL_OUT), then the function print_Parameters(table, out).

See the examples.

Important: A null value handling should be performed.

The i-net HelpDesk uses exactly the two following functions (of course, you can define any other functions internally):

  • getStatus (only relevant for STATUS_CHANGE).
    • returns the values for which the script should be applied on status change.
  • checkData with an object table (java.util.Hashtable) passed, containing the available information.
    • see example 1: checks if the status is equal to 220.
    • If "Yes", then it sets the value "release-to-test.html" to the key mailtemplate, which would result in sending such a mail.

Note: The number of objects varies per trigger. See 'fields of influence'.