How to dynamically show Drop down box based on a selection in a multi-checkbox
Surender Biyyala (40●38●48)
| asked Aug 06 '14, 4:54 a.m.
edited Aug 06 '14, 5:27 a.m. by Ralph Schoon (63.5k●3●36●46)
Hi All,
Can any one help me out in doing the following
I want to show a drop down with the enumeration list when the user select the Classification as Security risk.
Thanks in Advance
Surender
|
3 answers
Ralph Schoon (63.5k●3●36●46)
| answered Aug 06 '14, 5:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Aug 06 '14, 5:29 a.m.
Please have a look at https://jazz.net/library/article/1093 Lab 4 for how a 'Dependent Enumeration' works. This also explained here:
I am assuming the classification is also an enumeration. I am not aware it works with all types of input values. If you have a different input value, you could use JavaScript as explained in the workshop and in https://jazz.net/wiki/bin/view/Main/AttributeCustomization . Comments
Thank you Ralph Schoon.
I want to show the drop down only when the user selects a particular value in the Classification(Multi-select) otherwise I need to hide that drop down.
by using the dependent enumeration I dont think we can hide/show attributes based on a the value.
Thanks
Surender
|
Ralph Schoon (63.5k●3●36●46)
| answered Aug 07 '14, 2:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Sorry, misunderstood the question somewhat. As far as I know, there are only the available selections to hide in the editor presentations. There is no hide on condition, as far as I am aware. You can use a (JavaScript) condition to make an attribute read only as an alternative. The links above still apply for this approach.
|
Thanks Ralph Schoon!
I tried using the Read only attributes for condition. But I see some strange behaviour .Here it goes
I created a javascript which will return false for risk and true for other values.
Step 1: select input other than risk O/P: field is readonly
Step2 : deselect the existing value and selected risk O/P: able to change the value od the field
Step3: deselect the risk and selected other value O/p still I`m able to change the value which should not be the case.
please provide your inputs.
Thanks
Surender
Comments Sorry, all I can do at this time.
Did you configure the operational behavior/precondition?
Surender Biyyala
commented Aug 07 '14, 8:28 a.m.
yes I do. |
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.