formula operator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    formula operator

    Hello,
    It is work:

    ifThenElse(salutationName == 'Herr', briefanrede='Sehr geehrter Herr ');

    It is not work.

    ifThenElse(salutationName == 'Herr Dr.', briefanrede='Sehr geehrter Herr Dr. ');

    salutationName == 'Herr Dr.' ?????

    Thanks for your help in advance.
    peter
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Do you have the option 'Herr Dr.' in salutation list in a key (not translation)?
    Hi, This code does not work. Field briefanrede is a text field. ifThenElse(briefanrede == null, ifThenElse(salutationName == 'Herr', briefanrede= 'Sehr


    I tried on the demo (before add 'Herr Dr.' option in salutation list) and it works for me

    Comment

    • peterberlin
      Active Community Member
      • Mar 2015
      • 1004

      #3

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        check for space in the end.


        Code:
        description=salutationName;
        ifThenElse(salutationName=='Herr Dr.', description='no space');
        ifThenElse(salutationName=='Herr Dr. ', description='with space');

        Comment

        • peterberlin
          Active Community Member
          • Mar 2015
          • 1004

          #5

          My formula script works if it is in the entity (therefore no space problem). It does not work in the workflow.

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            oh, we talk about workflow. Could you describe everything, I could to reproduce it.
            Is it Formula in Conditions section or in Entity Action? Full information, please

            Comment

            • peterberlin
              Active Community Member
              • Mar 2015
              • 1004

              #7
              Excuse me.
              I have only tried formula in the workflow and because I have not worked I have further tested and and in the entity it works.
              They are the same formla lines.

              Comment

              • tanya
                Senior Member
                • Jun 2014
                • 4308

                #8
                still can't reproduce

                Comment

                • peterberlin
                  Active Community Member
                  • Mar 2015
                  • 1004

                  #9
                  Thanks for your efforts. I will search further.

                  Comment

                  Working...