Skip to main content


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

getComponentState(key)

Updated on July 20, 2021

Obtains the state of a specified UI component.

Returns

The state of the UI component as a JSON object.

Parameters

NameTypeDescriptionRequired
keystringThe ID of the UI component whose state must be obtained.

Usage example

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

PCore.getComponentsRegistry().getComponentState("on8ttl-c11ngall-work-d-2001-caseview");

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