Announcement

Collapse
No announcement yet.

Formula to add items to multienum

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Formula to add items to multienum

    I can't figure out how to set the values in a multi-enum using a formula. Nothing I've tried works. The entity saves without any errors, but the multi-enum doesn't have anything selected.

    Code:
    ifThen(
        entity\isNew(),
        ifThen(
            type == 'Z',
            timesheettasks = 'CAD'
        )
    );
    I've tried
    Code:
    timesheettasks = ['CAD']
    and all kinds of other things, but nothing works. I want to add multiple values, e.g.
    Code:
    ['CAD','Photos']
    What do I need to do to accomplish that? Thanks.

  • #2
    It appears that I need to use the list function. That isn't shown in the 'Function' menu in the gui.

    Comment


    • tanya
      tanya commented
      Editing a comment
      Yes, you are right. For this you need to use 'list' function
Working...
X