Salesforce

TaskTypeGet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

TaskTypeGet (Magic xpa 4.x)

Returns the task type.

Syntax:

TaskTypeGet (generation)

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.

Returns:

The task code:

O – Online

B – Batch

C – Rich Client

R – Browser Client

M – Main Program

MC – Main Program from within a Rich Client program Since version: 1.9

W – Web Client Since version: 4.0

MW – Main Program from within a Web Client program Since version: 4.0

Uses:

You can have a general error handling logic unit that behaves differently if the error is raised from an Online or Batch screen.

If you have Main Program logic units that contain code for Rich Client and Online, you can have the code run depending on the caller.

See also:

How Do I Set Logic to Be Executed According to the Task Type in the Same Handler?

The Online and Rich Client Samples projects (program LG17 and RLG17)

Reference
Attachment 
Attachment