This content has been archived.

Table of Contents

setValues: Public JS API for control actions

setValues

Set any target property from a source property or a literal constant. Supports setting of multiple target properties through a single call.

Syntax

var options = {<br />
event: eventObject,<br />
list: [{target: 'targetProp1', source: "SourceProp1/value", isProperty: true/false},<br />
{target: 'targetProp2', source: "SourceProp2/value", isProperty: true/false},<br />
,<br />
{target: 'targetPropN', source: "SourcePropN/value", isProperty: true/false}]};

pega.api.ui.actions.setValues(options);

Parameters

Accepts a JavaScript object which can have the following key-values:

  • event: The event refers to a DOM eventObject.
  • list: This is an array of JS objects with property references as key-value pairs. Confirm that the target property/source property references are enclosed in quotes. isProperty indicates that whether the source is a property or a literal constant. The default value of isProperty is false. For example:

[{target: "Page1.Prop1", source: "Page2.Prop1", isProperty:true}, { target: "Page1.Prop2", source: "1234", isProperty:false}]

Suggest Edit

50% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.