Salesforce

Stat (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Stat (Magic xpa 3.x)

Checks the task's mode, such as Query, Modify, and so on.

Syntax:

Stat(generation,modes)

Parameters:

generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.

modes: An Alpha string that represents the first letter of the checked mode. C means Create, M means modify, Q means Query, and D means Delete.

You should write the first letter mode between single quotation marks and add the MODE literal.

For example: 'C'MODE to check if the mode is Create.

Returns:

Boolean (True, False)

Example:

If the current task is in Create or Modify mode, Stat(0,'CM'MODE) returns True.
If you use this expression as a condition in an operation, the engine will execute the operation only if the task currently running is in Create or Modify mode.

Note:

The D (Delete) status can be checked only in Record Suffix.

See also:

Literals

The Online and Rich Client Samples projects (program TF12 and RTF12)

Reference
Attachment 
Attachment