Assigning variable's value to be the same as other variable

I want to implement drop-down button which sets the value of a ‘variable A’. Default option is to manually input the value to be assigned for ‘variable A’. If I ever want to change this value, I will have to go to each and every button that uses it and change it manually.

Instead I would like for it to take this value from already existing ‘variable B’ and assign it to ‘variable A’. This would mean that if I ever want to change this value, I just have to go to ‘variable B’ and change it once for it to be reflected and active in every button that uses it.

Is there any syntax that would allow this?

Hi Greg,

If I understand correctly, you want a Variable which you can set so all DropDown Buttons assign this value to another variable.

So what you trying to achieve is using the placeholder of a variable. You can type <%= variableB %> in the load entry editor. Then once you change the variable B in the Variables, it will change all dropdowns using this placeholder accordingly.

Best regards,

Benedict Lang

Hi Bene,
thank you for reply. In “button drop-down” when choosing “load entries” instead of “manual input” and inputing <%= VariableB %> it is indeed taking value from the VariableB and assigning it’s value to VariableA - which is what I wanted. Unfortunately this caused another issues for me:

1 - How can I still have a dropdown with option to choose between many variables to be loaded to VariableA. Lets say that I want to choose between VariableB and VariableC with this dropdown to be loaded into VariableA.

2 - How to display name of the variable (rather in it’s value) in the dropdown list? Perhaps there is a way to display custom name per variable? If VariableB = 100 and VariableC=200 I would like to see “VariableB” and “VariableC” (or even “B” and “C”) instead of “100” and “200”.

3 - Is there a way to change the values for more than 1 variable this way in one click in the dropdown? Lets say I chose “Variable B” from dropdown - I would like it to load values from VariableB to VariableA but also set another VariableX to text “Value Loaded”.

all of those points could be achieved when selecting “Manual Input” in the button dropdown menu but then I cannot use values from VariableB and VariableC as a value reference for VariableA.

Hi Greg,

I’m terribly sorry that we are only now answering your questions. We had a technical error with the Community platform that prevented Bene from being notified that you replied so we have only just found out you asked a follow up question. In case your questions are still relevant I’ll try to answer them now.

  1. You can use a drop down with two Manual Inputs to save the values <%= VariableB %> and <%= VariableC %> respectively to VariableA. If you then use VariableA, it will have the current value of VariableB or VariableC depending on the current dropdown settings.

  2. The trick is two have additional variables with the pretty names, i.e. make a new variable called “VariableB_name”. In the dropdown for B, with each manually loaded input you can select “Add another variable”, here you select the new variable “VariableB_name” and add whatever name you want. Then when every you display the current value (i.e. in the title you can use <%= VariableB_name %> to tell the viewer which value is currently selected in an attractive way.

  3. This can likewise be done using the “Add another variable” functionality.

If any of these features are not available then it could be because your using an old version of Celonis, so updating to the latest version will solve the problem.

I hope this provides you with a satisfactory if much too late answer to your question.

Best wishes,