Skip to main content
Question

Enable/Disable or hide/unhide functionality in Studio View


ritesh3719
Level 3
Forum|alt.badge.img

Is it possible to enable/disable or hide/unhide a button in Celonis Studio Views. Basically i want to enable the button on certain conditions applied in the filter dropdown inputs.

abdulnour.duale11
Celonaut
Forum|alt.badge.img

Yes, you can definitely control button visibility and interactivity in Celonis Studio Views based on filter selections. While Celonis provides the button and filter components, you'll use JavaScript within the View's script section to create the dynamic link between the filter values and the button's behavior.

Essentially, you'll need to:

  1. Retrieve Filter Values: Use view.getFilterValues() to get the current selections from your filter dropdowns.
  2. Apply Conditional Logic: Use if statements or similar logic to determine if the button should be enabled, disabled, shown, or hidden.
  3. Modify Button Properties: Use view.findComponentById('yourButtonId') to locate the button and then setEnabled(true/false) or setVisible(true/false) to change its state.

For detailed information and examples, I recommend checking the Celonis Studio Views API documentation, which provides in-depth guidance on working with components and events.


ritesh3719
Level 3
Forum|alt.badge.img

Hi ​@abdulnour.duale11  can you guide me on applying this custom javascript conditions in components. Like where is the functionality embed this javascript code.


Reply