Require mandatory field and conditional dropdown box
I'm using RTC 2.0.0.2 version.
Below is my requirement.
I require to select either one of the choices, "Internal" or "External"
If chosen the type Internal then i don't want anything wrt "External"
If i have to choose External, then i have to get a list of items displayed in a dropdown box so that i can select one value for External category.
Selecting either one "Internal" or "External" should be Mandatory even.
Im fine about having any type of attribute for Internal/External to get this.
Any help on how this can be achieved?
Regards,
Pavithra
6 answers
If that is not paossible have a look in https://jazz.net/wiki/bin/view/Main/AttributeValueProviders.
Ralph
Hi,
I'm using RTC 2.0.0.2 version.
Below is my requirement.
I require to select either one of the choices, "Internal" or "External"
If chosen the type Internal then i don't want anything wrt "External"
If i have to choose External, then i have to get a list of items displayed in a dropdown box so that i can select one value for External category.
Selecting either one "Internal" or "External" should be Mandatory even.
Im fine about having any type of attribute for Internal/External to get this.
Any help on how this can be achieved?
Regards,
Pavithra
create two ATTRIBUTES to hold the values selected from these enums.
when u create the B ATTRIBUTE in the dependencies dialog, press + and select the A variable name.
in process config, workitems, attribute customization, value sets, provider = dependent enum,
provide a name of this valueset.
in the source attribute, pick the ATTRIBUTE to be the source (A) in the left column.
and select the ATTRIBUTE and values from the right (B)
I was incorrect. to get the B choice to be active in the left attribute, you MUST pick something from the right
then select the values in the right for the 'A' choice
then pick the B values.. note that you WILL have to pick something for the B choice (unassigned, or not selected)
Comments
do you mean If A was selected show only A subchoices, and the same if B is selected.
that is called dependent enumerations.
you have one that has A & B
and one that has all the other things.
then in the attribute customization, setup a dependent enum select A, then select the values connected to A, then select B and select the sub values connected with B.
but both enums on the display page, and make the second depend on the 1st (in the dependancy dialog box).
then to make the 1st enum required, you use the Type & State Precondition to insure that someone selected A or B (also have an unselected value)
same for the second enum.. (also an unselected value).
Hi Sam,
sadly there is no support for the second requirement. you cannot hide a field on the fly. you can have no choices available in B, but you cannot HIDE B.
Ok..that's a hitch.Can you let me know how to achieve this functionality then? If A is true then select values in B,and if A is False,then have no choices available in B?
Comments
also show here in the info center
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.workitem.doc/topics/c_configuring_value_sets.html&scope=null
Comments
can u screen shot that?
just to recap the steps
1. create enumeration A
2. create enumeration B
3. create attribute aA, as enum type, connected to enum A
4. create attribute aB, as enum type, connected to enum B, dependent on attribute aA
create (add) a value set, provider = dependent enumeration
at this point, the screen should look like
Hi Sam,
sadly no. you cannot do this dynamically. note also that removing enum value is very troublesome, as some workitems data would them become invalid..
so, you can add, but can never take away. the database stored enums provide 'archive' of an entry, but many other things do not work the same.