It's all about the answers!

Ask a question

How to Set Two Variables at One Time


John Bobinyec (683432) | asked Sep 02 '11, 11:43 a.m.
I've got a situation where I have a pull-down list of customer names. The user makes his choice and the name is to be used in the build. For each one of these customer choices there is a corresponding abbreviation of the customer name, which is also to be used in the build. What I have now is the single customer list and based on the user's choice, there is some code which processes the customer name to find the appropriate abbreviation. I'd like to avoid that code and have the user's single choice to set two variables, namely the customer name and the customer abbreviation. Is there a way to do this?

Thanks,
John Bobinyec

One answer



permanent link
Brent Ulbricht (2.5k11) | answered Sep 02 '11, 3:13 p.m.
JAZZ DEVELOPER
I've got a situation where I have a pull-down list of customer names. The user makes his choice and the name is to be used in the build. For each one of these customer choices there is a corresponding abbreviation of the customer name, which is also to be used in the build. What I have now is the single customer list and based on the user's choice, there is some code which processes the customer name to find the appropriate abbreviation. I'd like to avoid that code and have the user's single choice to set two variables, namely the customer name and the customer abbreviation. Is there a way to do this?

Thanks,
John Bobinyec


Hi John,

It sounds like you would like both the key and value for the environment variable option for use rather than just the value. The only thing I can think of, which is unfortunately similar to your scripting, is to use the conditional feature on a step to check one of the variable values and then do a .bset to set the other variable. This can get kind of unwieldy if you have a lot of options. The only other thing I can think of is scripting with the services layer API, which it sounds like you're trying to get away from scripts.

Brent Ulbricht
RTC Build Lead

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.