5 Replies Latest reply: Nov 30, 2012 8:16 AM by David Alcobero Pinyot RSS

    Store set analysis expression in the script

    David Alcobero Pinyot

      Hi,

      I want to store and if statement expresion (containing set analysis) into a variable in the script for the future usage in expressions in some charts.

      As the expression is the same in many charts is better having the same expresion in a variable for its future modifications.

       

      I already defined that variable in the trigger section when the script finishes its reload. But for some reasons (developement flexibility, user scalability, all params together, etc..) I have to move into the script.

       

      So my question exactly is: "How can I set a variable with this expresion in the script?":

           =if(Customer='Custom1',Only({1<IdField={TYPE1'}>} Method), Only({1<IdField={'TYPE2'}>} Method))

       

      I tried let with no luck..

       

       

      Thanks!

       

      David.