Skip to main content


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

setComponentState(key, object)

Updated on July 20, 2021

Updates the state of a specified UI component. The updated state is stored in a browser session.

Returns

Not applicable.

Parameters

NameTypeDescriptionRequired
keystringThe ID of the UI component whose state must be updated.
objectJSON objectThe data that must be set as the state of the UI component.

Usage example

In this example, the API updates the state of a UI component whose key is on8ttl-c11ngall-work-d-2001-caseview.

PCore.getComponentsRegistry().setComponentState("on8ttl-c11ngall-work-d-2001-caseview", { active: 0});

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