4 Replies Latest reply: Aug 23, 2016 5:13 PM by Haikuo Yu RSS

    GetCurrentField() as variable

      Hello,

       

      I'm trying to put an expression into a variable, but I encounter problems with one specific expression.

       

      The expression is:

      IF(GETPOSSIBLECOUNT($(=GETCURRENTFIELD(GROUPFIELD)))>4,1,0)

       

      This expression works this way when I use it literally in the expression box. But when I try to put in a variable in the script, I don't get a result. The problem is in the GETCURRENTFIELD() - when I type instead one of the possible fields, the expression is working.

       

      Is there any solution for this? Or do I just have to use the expression instead of a variable for this calculation?