Skip to main content
LinkedIn
Copied!

Table of Contents

setValues

Version:

Only available versions of this content are shown in the dropdown

Sets the value of a target property from a source property or a literal constant. Supports setting multiple target properties through a single call.

Signature

setValues(options)

Returns

Not applicable.

Parameters

Name Description Type Required
event Specifies the event that sets the property value. DOM event object
list Specifies the target and the source for the value change. JSON object

JSON objects

activity
isProperty indicates whether the source is a property or a literal constant. The default value of isProperty is false, which means that the source is a constant. You can set up multiple target properties by setting an array.
[
   {
      "target":"Page1.Prop1",
      "source":"Page2.Prop1",
      "isProperty":true
   },
   {
      "target":"Page1.Prop2",
      "source":"1234",
      "isProperty":false
   }
]
 var options = {
            event: eventObject,
            list: [{target: 'targetProp1', source: "SourceProp1/value", isProperty: boolean},
                   {target: 'targetProp2', source: "SourceProp2/value", isProperty: boolean},
                   ...,
                   {target: 'targetPropN', source: "SourcePropN/value", isProperty: boolean}]
            };         

        pega.api.ui.actions.setValues(options);
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us