I'm working on a workflow and I am trying to figure out if it is possible to choose 1 of 3 options that have different rates that is used to calculate a total. For example, option 1 would be $0.50 and $0.00, option 2 would be $0.50 and $1.25 and option 3 would be $0.50 and $2.50. Depending on which option is chosen then those rates would apply to workflow for a specific person.
I have the calculation logic complete and just missing a way to allow the user to select which option. Any help is much appreciated.
@blu715388 you can turn your workflow into an analytic application (allowing an end user to run with a simple interface selection), or you can do this in a similar fashion by converting a set of tools into a macro that can then be dropped onto another workflow that provides this desired functionality. In both cases you will want to leverage the "Drop Down" tool that can be found within the Interface tool pallet. There are a few ways to configure the tool and link it to the other tools you are looking to update, which will depend upon what you are looking to send through. In your example at least it appears that only one of the two values is actually changing, so that is all that actually needs to be updated. If you still wish to display both selections, you could configure the Drop Down tool as shown below:
Using the separation with the colon (:) uses what is to the left of the colon to be displayed in the drop down to the end user, while the value on the right of the colon is what is passed to your connected tool. In other words, this will cause the drop down select to display the values you are looking for but only pass the single rate that you are updating to the tool that you connect to. In your example case, that is likely the easiest solution to implement.
If both rates were actually variable, but you wanted to keep this in a single drop down selection, you could instead remove the colon and value on the right to pass the entire selection to the connected tool. From here, you could parse out the actual numbers you wish to use in your calculation. In both cases you can update an existing value within your calculation leveraging an action tool (connect to the lightning bolt symbol), or you can connect directly to the tool (the Q connection) and then use your variable as a connected field.
There are actually numerous ways to configure the combination of tools to accomplish what you are looking for. If the above doesn't work for you feel free to reach out and I can show you some other examples.
Good luck and happy solving!