cancel
Showing results for 
Search instead for 
Did you mean: 

Form property coercion

patcharataya
Champ in-the-making
Champ in-the-making
Hi

I'd like to create a process that would need 2 input parameters. Both parameter are ComboBox type. Here are my questions.
Is it possible to enable the second combo box after the first one is selected?
Is it possible to use the value from the first combo box to filter the items in the second combo box?
Any explanation on how to achieve the above requirement?

Thanks
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Yes, but it will need to be a custom component (the component will manage two comboboxes)
See http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/ for more info.

ejyanezp
Champ in-the-making
Champ in-the-making
I have the same question, I've built several custom components and they work in a isolated fashion in an Activiti Form (they can not see other form properties) neither you can get access to the field container, so you can perform validation between dependent fields, so i think this is not the answer.

In Vaadin is easy, because you use the "Form" class (container) that has methods to retrieve all the fields.

An easy way would be to have access to the container (the form) from the custom component instance. Then you are able to retrieve any other form property and if I select a value in a combobox, I can use this value to apply a filter for the values of the second combo box.

Please let me know if I'm wrong, but i think that currently there is no way for this sequential dependency betwen form properties.

Regards,
Eduardo Yánez.

ejyanezp
Champ in-the-making
Champ in-the-making
Hi patcharataya, look at this link, and tell me there if that works for you

http://forums.activiti.org/content/activiti-forms-dependent-properties

Regards,
e.