Salesforce

THIS (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

THIS (Magic xpa 2.x)

Directs a variable-related function or a task generation related function to the variable or task from which an event was triggered. A raised event may be handled by a handler of a higher level task. In such a case the data view and the runtime tree below the handler's task level are not available.

Syntax:

THIS()

Parameters:

None

Returns:

The index of a variable from which an event was raised or the generation of the task from which the event was raised.

Examples:

VarCurr(THIS()), returns the current value of the variable from which the handled event was raised.

Stat(THIS(),'C'MODE) returns a value for true if the task from which the handled event is raised in create mode.

Exceptions:

  • The THIS function is not supported in all of the functions and cannot be evaluated independently.

  • The THIS function cannot be followed by other arithmetic or conversion functions.

See also:

The Online and Rich Client Samples projects (program EN07 and REN07)

Reference
Attachment 
Attachment