Links may not function; however, this content may be relevant to outdated versions of the product.
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.