UI Builder - Controlling the visibility of components
Import
·
Aug 11, 2022
·
article
Very flexible pages can be created by controlling the visibility of components. One example is the Loader component. It’s very helpful to show the user that something is in progress. Of course, this component should only be visible when the background process is running.
How to:
- Define a client state parameter of type Boolean (eg. “isLoading”)
- Bind this parameter to component visibility. Click the little eye icon on the top right.
- Set the value of this parameter by an event which starts the longer running process (eg. Start or Refresh of Data Broker) to show the loader
- Set the value of this parameter at the end of processing (by Data Fetch Succeeded event of a Data Broker) to hide the Loader
View original source
https://www.servicenow.com/community/developer-articles/ui-builder-controlling-the-visibility-of-components/ta-p/2300914