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

Table of Contents

Article

setValue: Public JS API for control actions

setValue

Set any target property from a source property or a literal constant.

Syntax

pega.api.ui.actions.setValue(target, source, isProperty, event);

Parameters

This API accepts a JavaScript object which can have the following key-values.

  • target: The target property reference
  • source: A property reference or a literal constant.
  • isProperty: Indicates that whether the source is a property or a literal constant. The default value of isProperty is false.
  • event: The event refers to a DOM eventObject which is required to get the context page when passing scalar properties.

Published February 15, 2017 — Updated April 6, 2017


25% found this useful

Have a question? Get answers now.

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