Skip to main content

Hi everyone,

 

I am having troubles with variables in Views - both view variables and runtime.

I want to set a target days and on change the value to be written to both ${target_ct_days} and ${{target_ct_days_runtime}} so that when I change target days, the bar chart to change simultaneously together with any KPIs which use the runtime variable.

 

This is the YAML code for the input box.

-If I have only ${target_ct_days} to be changed, the graphs are being changed accordingly.

-But if I have both variables, graphs do not change, only the runtime variable:

 

type: input-box

settings:

  styles:

    position:

      horizontal: full

      vertical: top

  name: ""

  value: ""

  placeholderText: Enter Target CT days

  type: number

  onChange:

    update:

      variables:

        - name: target_ct_days

        - name: target_ct_days_runtime

 

I would be thankful if someone advice me what should I do to update both variables so that graphs and KPIs change simultaneously.

 

Thank you in advance!

There are two ways to do this, firstly you can use a parameter for the same, however parameters may not work with all components.

 

Kindly find the following link for the same

https://docs.celonis.com/en/knowledge-model---kpis.html#UUID-8244f61e-18b5-7bee-bf4a-c5bd65b6d3d0_id_KMKPIs-ParametrisedKPIsYAML

 

Secondly you can use a runtime variable, however the same will only be updated once the page is refreshed i.e at runtime of the view.

 

Kindly find the following link for the same

https://docs.celonis.com/en/variables-1544330.html#UUID-18559428-c5db-04fa-bf7d-b329f436c0c3


Reply