It's all about the answers!

Ask a question

How to dynamically show Drop down box based on a selection in a multi-checkbox


0
1
Surender Biyyala (402048) | asked Aug 06 '14, 4:54 a.m.
edited Aug 06 '14, 5:27 a.m. by Ralph Schoon (59.7k23643)
 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



permanent link
Ralph Schoon (59.7k23643) | 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:
  • https://jazz.net/library/article/1003
  • https://jazz.net/wiki/bin/view/Main/AttributeCustomization 

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
Surender Biyyala commented Aug 06 '14, 1:27 p.m. | edited Aug 07 '14, 2:00 a.m.
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

permanent link
Ralph Schoon (59.7k23643) | 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.

permanent link
Surender Biyyala (402048) | answered Aug 07 '14, 6:15 a.m.
 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
Ralph Schoon commented Aug 07 '14, 6:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Sorry, all I can do at this time.


Ralph Schoon commented Aug 07 '14, 6:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Did you configure the operational behavior/precondition?


Surender Biyyala commented Aug 07 '14, 8:28 a.m.

 yes I do.

Your answer


Register or to post your answer.