Versions Compared

Key

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

...

Method

Return Type

Description

name()

String

Retrieves the name of the storage location.

storageLocationType()

String

Retrieves the type of the storage location.

Accessing Calculation-Dependent Fields

In Calculated Fields Scripts, the getCalculationDependentFields() method provides access to specific fields that are pertinent to the calculations being performed. This method returns an object that returns properties and complex properties (records) in the same format as the Concept object.

Methods Available

This object provides similar methods to those available in the Concept object for accessing properties and records (see here):

  • Property Access Methods: Includes methods to retrieve simple properties in various data types (e.g., getProperty(String key), getPropertyAsInt(String key), etc.).

  • Complex Property (Record) Access Methods: Includes methods to access complex properties or records such as getComplexProperty(String recordTypeKey) which retrieves a list of complex properties (records) based on the record type key.

Accessing Master Data

Scripts have the capability to access and utilize master data, which are tables of fixed data independent of the concept units. Master data provides a stable dataset that scripts can rely on for performing various operations, such as validations and computations.

...

The User object represents detailed user information. Here is a breakdown of the methods you can use to access this data directly:

Method

Return Type

Description

id()

String

Retrieves the unique identifier of the user.

username()

String

Retrieves the username of the user.

firstname()

String

Retrieves the first name of the user.

lastname()

String

Retrieves the last name of the user.

email()

String

Retrieves the email address of the user.

firstLogin()

Instant

Retrieves the timestamp of the user's first login.

mostRecentLogin()

Instant

Retrieves the timestamp of the user's most recent login.