Salesforce

JavaSet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

JavaSet

Sets the value of a property in a Java object.

Syntax:

JavaSet (data member name, value)

Parameters:

data member name: The Java field/ data member to set its value.

value: The required value to be set. You can also use native Magic xpa function in the value parameter.

The value parameter must be of the same attribute as the property parameter.

Returns:

The value set

Example:

JavaSet(A.Id, 'c1’)

'A' is a Java variable of a type that has a data member 'Id'.

JavaSet(Java.Calculator.CalculatorsCount, 0)

CalculatorsCount is a static data member of the class Java.Calculator. This will set its value to 0.

Note:

There are two ways to set the value of a Java field either by using the Update operation or the JavaSet() function. The only way to set the value of a data member or a property is by using the JavaSet() function.

This function is not available in Web Client tasks.

Reference
Attachment 
Attachment