Start a new topic
Answered

How to Enable Multi-Valued Attributes?

I want to add in a relation table of my model, a multi-valued attribute. Do you have examples to implement this. For the moment, on my attribute I see the "multi-value" option grayed out (location at the level of "MonChampMultiValué")


Best Answer

Enabling the multivalue field only works on a list of LOV values.

So in your case it is not possible.

https://www.semarchy.com/doc/xdm/5.2.10/semdg.html 

Multi-Valued : This option applies to definition attributes having the type list of values. Checking this box allows the definition attribute to receive several codes in the list of values, separated by the 

Value Separator  provided. For example, a multi-valued  Diplomas  field can receive the  DM, DP, DPM  codes meaning that that contact is  Doctor of Medicine ,  Pharmacy,  and  Preventive Medicine .

To solve this, I suggest you create a Many-To-Many association table that will perfectly meet your needs.


1 Comment

Answer

Enabling the multivalue field only works on a list of LOV values.

So in your case it is not possible.

https://www.semarchy.com/doc/xdm/5.2.10/semdg.html 

Multi-Valued : This option applies to definition attributes having the type list of values. Checking this box allows the definition attribute to receive several codes in the list of values, separated by the 

Value Separator  provided. For example, a multi-valued  Diplomas  field can receive the  DM, DP, DPM  codes meaning that that contact is  Doctor of Medicine ,  Pharmacy,  and  Preventive Medicine .

To solve this, I suggest you create a Many-To-Many association table that will perfectly meet your needs.


Login to post a comment