Salesforce

Subform Detail Properties (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Subform Detail Properties (Magic xpa 4.x)

Property

Description

Mobile Support

IsRouter Outlet

Indicates that the Subform control can be the destination for routed programs/tasks. The routed tasks are invoked via Call operations with Is Route set to Yes.

This property is available in Web Client tasks only.

Since version: 4.0

IsDefault Outlet

Indicates that the Subform is the default router outlet. If Call operation did not specify any destination in route event, the program/task is opened inside this outlet.

This property is available in Web Client tasks only.

Since version: 4.0

Connect To

The object to be called by the subform. When setting this property in the program’s Form Editor, the options are Program (default) or Subtask. When setting this property in the Model repository, the only option available is Program.

The options are Program (default), Subtask or None. (Since version: None option: Rich Client support – 1.9 and Online support – 2.1)

The None option lets you define empty Subform controls (without a program/task). This allows for the declaration of placeholders for a called task to run in.

When you select the None option:

  • The subform is not drawn when the task loads.

  • When a Call operation has a Destination set and the call is made to that subform, the subform is displayed according to the Visible property value. It is refreshed when the argument is changed according to the Automatic Refresh property value.

  • You can use the Subform Refresh internal event from both the program where the subform resides and the called program's Runtime parent.

When setting this property in the Model repository, the only option available is Program.

Android and iOS

PRG/TSK num

The Program or Subtask number to be called by the subform. You can zoom from this property to select the program or subtask.

When the Connect to property is set to Program, the Program list is displayed when zooming from this property.

When the Connect to property is set to Subtask, the Subtask list is displayed when zooming from this property. From the Subtask list, you can easily create a new subtask by clicking the Create button and defining the properties of the new subtask.

Note: You can easily jump to the program or subtask by right-clicking and selecting Go to Object (Ctrl+F5). Once you are done, you can return to the program or subtask by right-clicking and selecting Return to Object (Ctrl+Shift+F5).

Since version: 1.5

Android and iOS

Arguments

The number of arguments passed from the program or subtask to the subform. You can zoom to display the Argument repository and edit/view the passed arguments and expected arguments. This property is disabled in the Model repository.

Android and iOS

Automatic Refresh

Specifies whether the subform view is automatically refreshed upon any modification of one of its passed arguments (by value and/or by reference).

When you set the value to Yes or an expression that evaluates to True, Magic xpa automatically refreshes the subform when any of the subform’s passed arguments have been changed in the parent, sibling, or nested tasks related to the subform. The runtime engine will also refresh the subform task when range or link values have changed.

In Rich Client tasks, an expression used in this property must be neutral (can be executed both on the client and server side).

See also:

How Do I Manually Refresh the View of the Subform?

How Do I Refresh the Subform View Only on Modifying the Last Argument When Passing Several Arguments to the Subform?

Android and iOS

Refresh when hidden

Governs the subform initialization and automatic refresh timing.

When this property is set to Yes, there is no difference whether or not the subform is visible, meaning:

  • The subform's task initialization will be executed after the Record Prefix of the first record in the data view.

  • The subform refresh will be done according to the Automatic Refresh property.

Note: Setting this property to No enhances the performance, since subforms that are hidden will not be refreshed until they become visible. The drawback is that when the subform becomes visible, the user will wait until a refresh is done.

When this property is set to No, the subform's task initialization and automatic refresh will only happen if the subform is visible. This means that:

  • Before executing each subform's task, its visibility will be checked and if it is invisible, the subform's task will not execute, and will be deferred. Once the client requires the subform to be displayed, there will be a call to the server, and the subform's task will be displayed for the first time.

  • The execution of the subform's Task Prefix will also be deferred to the first time that the subform is visible.

  • If the subform's visible expression is a client-side expression, then when the task loads, the subform will be regarded as visible.

  • In Online tasks, for nested subforms defined with a value of No, if the parent subform has value of Yes at runtime, then the nested subform will also be executed with a value of Yes.

Note: The Subform Refresh event is not affected by this property, so when manually raised the subform will be refreshed.

When this property has an expression, the behavior will be according to the expression value at Runtime. If the expression value becomes True:

  • In Online, the subform will be refreshed immediately.

  • In Rich Client, the subform will not be refreshed immediately.

Since version: Rich Client support: 1.5; Online support: 2.0a

See also How Do I Prevent the Subform from Being Refreshed If It Is Not Visible?

Is Cached

Specifies whether the client will perform data view caching for the subforms.

This property is available in Rich Client and Web Client tasks only.

Note: The cache will only work if the called program/task does not have a Server-side expression in its range/locate.

Control Name

The Subform control name. The default value is the name of the connected program or subtask.

The control name is used by handlers and functions to refer to the control.

Unicode is not supported for this property.

In Web Client tasks, this field must not start with a digit, or contain spaces or the special characters !,+:,~{}>\".

In Web Client tasks, the controls for which data is not required, this property contains a default control name as Subformxxxxxxxx where xxxxxxxx is the ISN of this control.

Android and iOS

Custom Properties

It is a Read-Only, free-floating property that displays the number of items in the custom properties list for this specific form or control. You can access it by zooming-in to it.

Since version: 4.0

See also: Web Client Custom Properties Property

Lock

This property locks the current view record of the parent form.

The allowed values are:

False - Magic xpa will not lock the current view record of the parent form. It is the programmer's responsibility to verify that no record updates will occur on the parent form. If any record update occurs, they may be lost.

True - The current view record is locked immediately on setting the value to true. The record on the parent form cannot be modified.

Default value - false

There are a few exceptions that will not lock the current data view record even though the developer sets lock property to True.

  • The locking strategy of the task is defined as 'Before Update' or 'No Lock'. In this case, the task locking behavior overrides the Lock property of the Call operation.

  • No arguments are passed to the called program, or all the arguments are passed as expressions (by value).

Since version: 3.3

This property is not available in Web Client tasks.

Android and iOS

Reference
Attachment 
Attachment