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.
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:
- Retrieve Filter Values: Use
view.getFilterValues()
to get the current selections from your filter dropdowns. - Apply Conditional Logic: Use
if
statements or similar logic to determine if the button should be enabled, disabled, shown, or hidden. - Modify Button Properties: Use
view.findComponentById('yourButtonId')
to locate the button and thensetEnabled(true/false)
orsetVisible(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.
Hi
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.