OTScript Method Presentation

OTScript methods produce data handled in templates.

You have two ways to create OTScript methods:

  • As an Administrator, you can create OTScript methods within the OTScript Files editor of the Configure page available from the home page. For more information, see About the OTScript Files Editor. A user can find these methods in the Data tab of the template editor and insert them in all templates.
  • As a user, you can create your own OTScript methods within the OTScript tab of the template editor. For more information, see Defining OTScript Methods in Templates. You can only insert these methods in the current template.

This page discusses:

Method Definition

The following figure corresponds to the definition of a simple method:

Methods in Data Tab

The following figure shows you how the previous method appears in the Data tab, if it is defined in the OTScript Code editor:

Provided methods and own methods look the same way in the Data tab.

Description

type_name: The type returned by the new method.
method_name: The internal name of the new method.
code: The code of the method.
category: The location for the method.
tooltip: The tooltip associated with the method in the Data tab.
label: The name displayed in the Data tab.