1 Reply Latest reply: Sep 26, 2013 12:05 PM by BIPuser RSS

    problem with decode

    Sergio_doudou

      according to you, what's wrong with this : <?xdofx:decode(sum(current-group()//MOIS4_BUD),'0','', sum(current-group()//MOIS4_BUD))?>

       

      Thank you

        • 1. Re: problem with decode
          BIPuser

          I believe that the code should be: <?xdofx:decode(sum(current-group()/MOIS4_BUD),'0','', sum(current-group()/MOIS4_BUD))?>

           

          Are you getting an error using your original code? You could also try to switch to using the xdoxslt:ifelse function like:

            <?xdoxslt:ifelse(sum(current-group()/MOIS4_BUD)=0,'', sum(current-group()/MOIS4_BUD))?>

           

          Thanks,
          Bipuser