This discussion is archived
1 Reply Latest reply: Sep 26, 2013 10:05 AM by BIPuser RSS

problem with decode

Sergio_doudou Newbie
Currently Being Moderated

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 Guru
    Currently Being Moderated

    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))?>




  • Correct Answers - 10 points
  • Helpful Answers - 5 points