4 Replies Latest reply: Dec 14, 2016 12:00 PM by Sunny Talwar RSS

    Expression variable from UI to script

    Paul M



      I'm trying to bring a variable, based on an expression that is dependent on UI selections, into the script after a user-requested reload.


      The expression uses functions such as GetSelectedCount() and I need to pass this into the load script to be used in an ADD LOAD function, e.g.:


      vVariable = If(GetSelectedCount(fieldA) = 1, fieldB, 0)


      At this moment when I use the variable it just gives me the code used in the expression, but I need to be able to bring the evaluated result if possible.


      Does anybody know how I can do this?