6 Replies Latest reply: Feb 21, 2013 7:21 AM by Daniel Rozental RSS

    Passing a variable to an expression

      Hi there,

       

      I'm having a problem returning a value for my expression below

       

      sum({<TrnMonth={$('vTrnMonthSelected')}>}NetSalesValue)

       

      where TrnMonth is the selection the user makes via a List Box

       

      and vTrnMonthSelected is a variable with the below formula

       

      GetFieldSelections(TrnMonth)

       

      and NetSalesValue is the summed value I want returned.

       

      All I get back is 0.

       

      When I use just $(vTrnMonthSelected) it returns the selections but whenever I run the main sum line, I cannot seem to get it to work.

       

      Any help would be brilliant

       

      Thanks