Salesforce

Client and Server-Side Properties (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Client and Server-Side Properties (Magic xpa 3.x)

Client-side Properties

Some properties, such as form properties and task properties, are defined as client-side properties in order to minimize server interaction.

Server-side functions, such as CallDLL, cannot be used in a client-side property. If we were to use a server-side function for a client-side property, then for every Screen Refresh, for example, the Rich Client module would approach the server to evaluate the expression.

Implementation

To implement this scenario, we need to understand that the Task Prefix logic unit is a server-side operation. We can utilize this information to solve our dilemma, as follows:

  1. Define a new variable.

  2. In the Task Prefix, update the new variable with the server-side function.

  3. In the client-side property, use the new variable instead of the server-side function.

Server-side Properties

Some task properties are evaluated when the task loads. These properties, such as the Range Expression, are defined as server-side properties. If a property is server-side, we are unable to use a client-side function, such as ClipRead. When the task is initializing, there is still no Rich Client interface and so the module cannot return to the client to evaluate the expression.

Implementation

To implement this scenario, we need to use a program that already exists in the runtime task tree, as follows:

  1. Define a new variable in a parent program or the Main Program.

  2. Before calling the new program, update the new variable with the client-side function.

  3. In the server-side property, use the new variable in the expression.

Reference
Attachment 
Attachment