Salesforce

LastPark (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

LastPark (Magic xpa 2.x)

Returns the name of the control on which the user last parked in the specified task.

Syntax:

LastPark(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 name of the control on which the user last parked. Note that this is different from where the user last clicked.

Example:

LastPark(1)
returns the control name on which the user last parked in the parent task.

Note:

This function allows you to retrieve the control name from the current task that contains the control, and from that task’s child tasks. However, it does not work:

  • To retrieve the control name of the currently parked field

  • From within logic units that happen to be triggered within parent tasks to this task.

You can fetch the currently parked control from this or a parent task by using the HandledCtrl function. You can use the THIS function to retrieve other information about the current field.

If you are trying to do specific processing for one field in your current task, you can do this using the Control events for that control.

See also:

CHeight, CWidth, CX, CY, LastClicked

How Do I Retrieve the Name of the Control the User Parked On?

The Online and Rich Client Samples projects (program EL12 and REL12)

Reference
Attachment 
Attachment