cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Is there MetaModel Design pattern for Set Attributes

alros
Super Contributor

We have  a few cases where we want something wich is essentially a MetaAttribute with fixed values (enum), but we want to allow multiple values at the same time.

 

For example we have the enum {A, B, C} then an Object can have the values {}, {A}, {B}, {C}, {A,B}, {A,C}, {B,C}, {A,B,C}.

For smaller enums we have seen that there is a boolean MetaAttribute for each possible value, but for larger enums this becomes impractical, especially when the enum can change.

 

Is there a recommended design patterns for such attributes? We have implemented the larger case via a MetaAssociation to the MetaClass MetaAttributeValue and configured the recommended values to be the MetaAttributeValues associated to a n unused "template attribute" of type enum.

1 Reply

jhorber
MEGA
MEGA

Hello Alros


The HOPEX plateform enables to enter and save such values

Example in standard Metamodel ~MZUVmy73FT1K[Behavior Capabilities]

It will be necessary to customize propertypage to get and appropriate display (expert customization)

 

See KB http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=501D00000014U7CIAU

Jerome