Hi,

I'm trying to get dependent magritte descriptions, but it seems like this
is not something that can be done in the descriptions:

Imagine a class Contact with "city" and "country" descriptions.
I would like to populate the city description based on the currently
selected country

~~~~~~~~~~~~~~~~~~~~~~
descriptionCountry
<magritteDescription>
^ MASingleOptionDescription new
accessor: #country;
label: 'Country';
options: self countries;
yourself

descriptionCity
<magritteDescription>
^ MASingleOptionDescription new
accessor: #city;
label: 'City';
options: (self citiesInCountry: self country);
yourself
~~~~~~~~~~~~~~~~~~~~~~

The problem with this approach is that both descriptions are in the same
form, so I need to update the cities list even before the country is saved
back into the object.

Is this possible in magritte?

Thanks,
Peter

Reply via email to