Ok, the problem here is that the documentation has gone old.

For example:
   'Car.color' : [ 'red','blue','green']
in the new editor is 
   Fact => Car
   Field => color
   Context => 'red','blue','green'

Toni

On Mar 1, 2013, at 9:14 AM, peach_wyss wrote:

ok thanks, all is much clearer now...

What I don't understand:
- When I see examples of enumerations in guvnor like:
'Car.color' : ['red', 'blue','green']

-> In all of this examples, there seems to be a text editor in guvnor. But when I create a new enumeration in guvnor (5.5. final), there isn't a text editor. What I see are three text-fields ("Fact", "Field", 'Context'), which I don't understand. Is there a way, to switch to the text editor view?

Sorry, maybe this is a stupid question, but couldn't really find a description of this in the web.

Thanks for your help.

Kind regards,
Peter



From: manstis [via Drools] <[hidden email]>
To: peach_wyss <[hidden email]>
Sent: Thursday, February 28, 2013 1:58 PM
Subject: Re: [rules-users] Fill dependent dropdown lists based on a web decision table

Did you read the "Advanced" section?

This talks about how you can use an external source of data for enumerations in Guvnor.

I thought this is what you wanted?

On 28 February 2013 10:16, peach_wyss <[hidden email]> wrote:
hy

thanks for your answer.

1) I think you have misunderstood me. I don't want this dropdown list in guvnor, we're having our dropdown list on our own form in our application. So guvnor should only provide a way to define this dependencies.

2) Where can I define an enum like this http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/index.html#d0e1903 in the Guvnor-Webclient? When I click on Knowledge Bases > Create New > New Enumeration, I can type in something like Fact, Field and Context...which I don't understand. Is there a text view for enumerations in guvnor?

Thanks for your help.
Peter



From: manstis [via Drools] <[hidden email]>
To: peach_wyss <[hidden email]>
Sent: Tuesday, February 26, 2013 8:40 AM
Subject: Re: [rules-users] Fill dependent dropdown lists based on a web decision table

Look at how to use advanced enums in Guvnor's User Guide.
sent on the move
On 26 Feb 2013 07:33, "peach_wyss" <[hidden email]> wrote:
Hi

I'm using Drools and Guvnor in our project. We have the following Data Model
(simplified):
- Object C
-> has a List
-> has a List

I need to build an easy to edit web decision table in guvnor. We need the
table to fill a dropdown list (Object B) in dependency of another dropdown
list (Object A), when for example creating a new Object C on a form. The
table should look something like this:

[Object A] [Object B]

Test A1     Test B1

                Test B2

                Test B3

Test A2     Test B4

Test A3     Test B5

                Test B6

Test A4     Test B7

                Test B8

                Test B9

                Test B10

...so when a User creates a new Object C (Create-Form) and select on for
example "Test A3" in a dropdown list (Object A), Drools should be firing and
result "Test B5" and "Test B6", which then can be filled in the second
dropdown list (Object B).

How can I achieve such a scenario? We have already Drools Guvnor in use and
the requirement is, to have such a table to easy edit the dependencies of
this two dropdown lists.

Some thoughts:
- Is there a way to fill Objects in a List as a Action-Column in a web
decision table?
- Is there a way to add Objects to a List (global variable) in a web
decision table?
- Is there a way to achieve this with rule templates?
- Are there other ways to achieve this?

Thanks for your help.

Kind regards,
Peter



--
View this message in context: http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-tp4022589.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


To unsubscribe from Fill dependent dropdown lists based on a web decision table (or other type of rules), click here.
NAML




View this message in context: Re: [rules-users] Fill dependent dropdown lists based on a web decision table
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


To unsubscribe from Fill dependent dropdown lists based on a web decision table (or other type of rules), click here.
NAML




View this message in context: Re: [rules-users] Fill dependent dropdown lists based on a web decision table
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users