<p>Look at how to use advanced enums in Guvnor&#39;s User Guide.</p>
<p>sent on the move</p>
<p>On 26 Feb 2013 07:33, &quot;peach_wyss&quot; &lt;<a href="mailto:peach_wyss@yahoo.com">peach_wyss@yahoo.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I&#39;m using Drools and Guvnor in our project. We have the following Data Model<br>
(simplified):<br>
- Object C<br>
-&gt; has a List<br>
-&gt; has a List<br>
<br>
I need to build an easy to edit web decision table in guvnor. We need the<br>
table to fill a dropdown list (Object B) in dependency of another dropdown<br>
list (Object A), when for example creating a new Object C on a form. The<br>
table should look something like this:<br>
<br>
[Object A] [Object B]<br>
<br>
Test A1     Test B1<br>
<br>
                Test B2<br>
<br>
                Test B3<br>
<br>
Test A2     Test B4<br>
<br>
Test A3     Test B5<br>
<br>
                Test B6<br>
<br>
Test A4     Test B7<br>
<br>
                Test B8<br>
<br>
                Test B9<br>
<br>
                Test B10<br>
<br>
...so when a User creates a new Object C (Create-Form) and select on for<br>
example &quot;Test A3&quot; in a dropdown list (Object A), Drools should be firing and<br>
result &quot;Test B5&quot; and &quot;Test B6&quot;, which then can be filled in the second<br>
dropdown list (Object B).<br>
<br>
How can I achieve such a scenario? We have already Drools Guvnor in use and<br>
the requirement is, to have such a table to easy edit the dependencies of<br>
this two dropdown lists.<br>
<br>
Some thoughts:<br>
- Is there a way to fill Objects in a List as a Action-Column in a web<br>
decision table?<br>
- Is there a way to add Objects to a List (global variable) in a web<br>
decision table?<br>
- Is there a way to achieve this with rule templates?<br>
- Are there other ways to achieve this?<br>
<br>
Thanks for your help.<br>
<br>
Kind regards,<br>
Peter<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-tp4022589.html" target="_blank">http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-tp4022589.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>