Salesforce

How Do I Condition the Logic to Be Executed Only for the First Record in an Online Task? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Condition the Logic to Be Executed Only for the First Record in an Online Task? (Magic xpa 4.x)

For an online task, you will often want to execute logic when the user first enters the task. The proper place to do this is Record Prefix, because at that point the tables are open and the data initialized. However, if the user is viewing a tabular data, you might not want to execute the logic every time the user moves to a new line in the table.

For this instance, there is a special function, IsFirstRecordCycle(). This returns TRUE only the first time Record Prefix is executed.

Using IsFirstRecordCycle()


  1. Create an expression where you want to use IsFirstRecordCycle().

  2. Type:

    IsFirstRecordCycle(0)

    to test for the first record cycle in this task (IsFirstRecordCycle(1) will check the parent task).

In this example, we used IsFirstRecordCycle(0) so that a CtrlGoTo would only execute the first time the task is opened.

See also

The Online and Rich Client Samples projects (program LG09 and RLG09)

Reference
Attachment 
Attachment