Skip to main content

I want to create an Aging/Market custom objects so my graph can be change based on dropdown I will select. let say If you select Aging then aging should be applied on the chart.

 

How to implement in new views?

@kandi.naidu 

 

Implementing dynamic changes in a chart based on a dropdown selection, such as switching between “Aging” and “Market” custom objects, is a straightforward process in Celonis. You can achieve this in new views by utilising the concept of variables and component interaction. Here’s a simple step-by-step guide:

 

- Define Variables: First, you must define variables that will hold the values based on the dropdown selection. This can be done in your view’s YAML configuration. For example, you might define a variable currentSelection that will store either "Aging" or "Market" based on the user's selection.

 

- Create a Dropdown Component: Add a dropdown component to your view. Configure this component to update the currentSelection variable upon selection. This involves setting up an onChange event in the dropdown's settings that updates the variable with the selected value.

 

- Configure the Chart Component: In the chart component's settings, use the variable currentSelection to change the data source, filters, or any other chart configurations based on the selected value. This might involve using if-else statements or switch cases within the YAML to apply different configurations based on the variable's value.

 

- Refresh the Chart: Ensure the chart refreshes or updates automatically when the variable changes. This might require configuring the chart component to listen for changes in the currentSelection variable and re-render accordingly.

 

With this approach, you gain complete control over your views. You can create interactive views where the displayed data dynamically changes based on user input, providing a more engaging and customisable user experience. Could you test the configuration thoroughly to ensure the chart updates correctly based on the dropdown selection?

 

I hope this helps!

 

If you receive any new error, please open a ticket with CS and we gladly help you!


Hi @henry.david.cueva ,

 

Can you share me the screenshots for reference. Aging and Market are not string values, those are KPI's and want to add it to my dropdown component but getting struck at dropdown component how to implement it.

 

Please share each step screenshot for reference.

 

Thanks,

 

Kandi Ajith Naidu.

 


Hi @henry.david.cueva ,

 

Can you share me the screenshots for reference. Aging and Market are not string values, those are KPI's and want to add it to my dropdown component but getting struck at dropdown component how to implement it.

 

Please share each step screenshot for reference.

 

Thanks,

 

Kandi Ajith Naidu.

 

Hi @henry.david.cueva , I have raise a ticket with case id : 00294991 . Can you please go through it and let me know.

 

Thanks,

Kandi Ajith Naidu.


Reply