Docs
  • Getting Started
  • Overview
    • Understanding
      • User-Interface
      • Shortcuts
    • Getting Started
      • Creating A New Application
      • Adding Basic Structure using Class Designer
      • Creating a link to the TIVITY File Class
      • Setting Rights
      • Creating Queries
      • Building The Layout
        • Creating an App Page
        • Creating an Object Page
        • Creating a List Item Layout
  • Building an Application
    • Application Setup
      • General
      • Documentation
      • License Management
      • Publishing the Application
      • Advanced Settings
        • Document-MailEditor
    • Data
      • Sources
      • Data Modelling
        • Class
        • Field
        • Action
        • Link
      • Query Data
        • Get Started with Query Designer
        • Common
        • Fields
        • Conditions
        • Default Values
        • Preview
      • Roles & Permissions
        • Rights Designer
      • Access Control Lists (ACL)
    • Views
      • Design UI
        • Page Types
        • Fields and Links
        • Layout Controls
          • Actions
          • Panels
          • Sections
          • Lists
          • Input
        • Layout Templates
      • Document Templates
        • Get started with Template Designer
        • Expressions in Templates
    • Execution
      • Functions
      • Workflows
        • Control Types
      • Trigger
      • Scripting
        • Accessing the Script Designer
        • Using the Script Designer
        • Commonly used Actions
        • Reference: Actions
          • Math
          • System
          • Date
          • Collection
          • LogicalOperators
          • Web
          • Structure
          • Constants
          • Converters
          • Commands
          • Text
          • PDF
          • Operators
          • PowerPoint
          • QR-/Barcode
          • Messaging
          • Cells
          • Xml
          • Admin
          • Integrations
    • Expressions
      • Expressions in Expressions
      • Expressions in Condition Values
  • Administration
    • Platform
    • Workspace
    • Security
    • Platform Setup
  • Extensibility and Integration
    • REST API
    • Source Adapter
      • Getting Started
      • Source Adapter Interface
      • RESTful Adapter Service
  • Adapter Portfolio
    • MongoDB Adapter
  • Platform Features
    • Enterprise Search
      • Integration into an App
      • General Settings
    • Templates
    • Tagging
      • Getting Started
      • Manage Tags
      • Settings
      • Usage
        • Tag filter
        • Tag panel
    • DMS Setup
Powered by GitBook
On this page
  • Block
  • Case
  • Comment
  • DoWhile
  • Error
  • ForEach
  • IfThenElse
  • IfThenElseExpression
  • Return
  • Switch
  • TryCatch
  • TypeOf
  • While

Was this helpful?

  1. Building an Application
  2. Execution
  3. Scripting
  4. Reference: Actions

Structure

Block

Represents a block to group statements. A Block element allows the clustering and naming of statements for a better organization of the code.

Syntax

Block ( [Name] , Block )

Parameters

-

Block Represents the list of statements. Type: Any

Return Type

Void

Case

Represents a case element for a Switch structure element. If the evaluated expression is found to be TRUE, the code in the following Branch is executed.

Syntax

Case ( Expression [, Branch] )

Parameters

Expression Condition that is used to determine if the case matches. Type: Any

Branch (optional) List of statements which will be executed if the case matches. Type: Any

Return Type

Case

Comment

Void Comment( String Value ) Allows inline comments (has no effect on execution).

Syntax

Void Comment(
    String Value
)

Parameters

Value (optional) The inline comment. Type: String

Return Type Void

DoWhile

Takes a condition as input and evaluates it. As long as this condition evaluates to TRUE, the Statements in the loop will be executed.

Syntax

DoWhile ( Condition , Loop )

Parameters

Condition Condition which is evaluated. Type: Boolean

Loop List of statements which will be executed if condition is satisfied. Type: Any

Return Type

Void

Error

Represents an error in the script execution. Takes a String as input which will be displayed as error message.

Syntax

Error ( Message )

Parameters

Message Message which is shown in case of an error. Type: String

Return Type

Exit

ForEach

The ForEach loop takes a list of objects identified with ObjectName as input and executes a list of statements for each item in that list individually.

Syntax

ForEach ( Objects , ObjectName , Loop )

Parameters

Objects List of objects which the operation is performed on. Type: List<Object>

ObjectName Variable Name to identify the object in the condition. Type: String

Loop List of statements which are executed for each object. Type: Any

Return Type

Void

IfThenElse

Takes a condition as input. If the condition evaluates to TRUE, the statements in the Then block will be executed. If the condition evaluates to FALSE, the statements in the Else Blocks will be executed.

Syntax

IfThenElse ( Condition , Then [, Else] )

Parameters

Condition Condition which is evaluated. Type: Boolean

Then List of statements executed if the condition is TRUE. Type: Any

Else (optional) List of statements executed if the condition is FALSE. Type: Any

Return Type

Void

IfThenElseExpression

Returns the Then value if the Condition evaluates to TRUE; returns the Else value otherwise (aka conditional operator, ternary operator, ternary if, inline if or iif.

Syntax

Any IfThenElseExpression(
    Boolean Condition,
    params Any Then,
    params Any Else
)

Parameters

Condition The condition to check. Type Boolean

Then The value to return if the condition evaluates to TRUE. Type Any

Else The value to return if the condition evaluates to FALSE. Type Any

Return Type

Any

Return

Terminates the script and returns the value of the expression as the result.

Syntax

Return ( Expression )

Parameters

Expression The expression of the value to return. Type: Any

Return Type

Exit

Switch

Represents a switch structure element. When a matching case branch is empty, then no branch actions are executed.

Syntax

Switch ( Expression [, Default] [, Cases] )

Parameters

Expression Expression which is used to match. Type: Any

Default (optional) Specifies the default case of the switch case expression. Type: Any

Cases (optional) A list of cases that are matched against. Type: List<Case>

Return Type

Void

TryCatch

Represents a try-catch structure element.

Syntax

TryCatch ( Try , Catch )

Parameters

Try List of statements which can throw an exception while executed Type: Any

Catch List of statements which are executed in case of an error. Type: Void

Return Type

Void

TypeOf

Returns the type of a value as a string. Following types are supported: Boolean, Byte, Char, DateTime, Numeric, Double, Float, Guid, Integer, Long, Short, String, and TimeSpan.

Syntax

TypeOf ( Value )

Parameters

Value The value to get the type from. Type: Any

Return Type

String

While

Represents a while-loop structure element. The while structure executes a list of statements while the conditions is TRUE.

Syntax

While ( Condition , Loop )

Parameters

Condition Condition which is evaluated. Type: Boolean

Loop List of statements which is executed while the condition is TRUE. Type: Any

Return Type

Void

PreviousWebNextConstants

Last updated 2 years ago

Was this helpful?