Multi Enum user defined values

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • shalmaxb
    replied
    Ok, thank you for your help.

    In one entity I have a multi-enum, where I store some values by default, which I put in as administrator, where other users do not have access to append or delete values of this list.
    I configured it in that way, that the user is allowed to put in own values on the frontend (user defined values allowed). These values do not get stored to the list and are used only for the one record, where the user put it in. That value then is not available for another record, but would have to be inserted again.

    When working as an user, you might use the pre-defined values, but would like to extend the list, something that is only possible as administrator.
    I could adapt the list for every single user to his preferences, but besides that is a tedious work it would not be update safe. As soon as I update the custom entity, all values would be changed as they are put in in the deployed entity. So, this approach is not viable.

    I already tried with another entity, that has its sole purpose to store desired values for this multi-enum field in an own multi-enum field and synchronizes it with this field. I created that entity, built a relationship but did not get it to hand over the values to the enum in the main entity.

    One other approach I did was to create an entity, where I had only the name field. I connected the two entities by n:n relationship and every record got listed in the relationship link format (not as an multi-enum). This would work, but I did not get the link values to be concatenated into another text field, which in fact I need. In that text field I put together the different multi-enum values in one field to display that information and also to be able to print it to PDF.

    I hope, I could explain understandable.

    Leave a comment:


  • rabii
    replied
    if you share how you wanted it to work i will be happy to help. i think you could use the hooks to keep things synced.

    Leave a comment:


  • shalmaxb
    replied
    I thought of such solution, but so far did not get it to work. I will try again.

    Leave a comment:


  • rabii
    replied
    Seems that you need another entity which will store default value in a multi-enum and then keep it sync whenever new value is added. if i understand your question correct.

    have a look at this : https://github.com/espocrm/espocrm/b...nity.json#L199

    Leave a comment:


  • shalmaxb
    started a topic Multi Enum user defined values

    Multi Enum user defined values

    Hi,
    ist there any way to make user defined values in a multi-enum field storeable?

    I have users with different sets of values and as it is now, they have to input again and again the same values, if they are not in the pre-defined list of values. If they used it for one record, it will not be in the list for another.

    I have already tried a lot of things with formula or another entity, where values could be stored and made available by relationship, but nothing worked so far.
Working...