Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

setValues: Public JS API for control actions

Updated on April 6, 2017

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 = {
event: eventObject,
list: [{target: 'targetProp1', source: "SourceProp1/value", isProperty: true/false},
{target: 'targetProp2', source: "SourceProp2/value", isProperty: true/false},
…,
{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}]

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us