Galera boa tarde !!!
Eu to em um projeto de conversão de relatorios do crystal para o jasper, e tenho tomado como base os relatorio do crystal porem eu me deparei com varias condicionais e queria saber se era possivel fazer isso no jasper
segue as condições
stringVar total := ‘’;
numberVar x := 0 ;
if( isnull({#TOTAL_REC_COR}) = false
and isnull({#TOTAL_REC_CAP}) = false
and isnull({#TOTAL_INTRA_CORR}) = false
and isnull({@totalDeficit}) = false
) then
total := totext(x + ({#TOTAL_REC_COR})+ ({#TOTAL_REC_CAP}) + ({#TOTAL_INTRA_CORR}) + ({@totalDeficit} ))
else if(isnull({#TOTAL_REC_COR}) = true
and isnull({#TOTAL_REC_CAP}) = false
and isnull({#TOTAL_INTRA_CORR}) = false
and isnull({@totalDeficit}) = false
) then
total := totext(x + ({#TOTAL_REC_CAP}) + ({#TOTAL_INTRA_CORR}) + ({@totalDeficit} ))
else if( isnull({#TOTAL_REC_COR}) = false
and isnull({#TOTAL_REC_CAP}) = true
and isnull({#TOTAL_INTRA_CORR}) = false
and isnull({@totalDeficit}) = false
) then
total := totext(x + ({#TOTAL_REC_COR}) + ({#TOTAL_INTRA_CORR}) + ({@totalDeficit} ))
else if( isnull({#TOTAL_REC_COR}) = false
and isnull({#TOTAL_REC_CAP}) = false
and isnull({#TOTAL_INTRA_CORR}) = true
and isnull({@totalDeficit}) = false
) then
total := totext(x + ({#TOTAL_REC_COR})+ ({#TOTAL_REC_CAP}) + ({@totalDeficit} ))
else if( isnull({#TOTAL_REC_COR}) = false
and isnull({#TOTAL_REC_CAP}) = false
and isnull({#TOTAL_INTRA_CORR}) = false
and isnull({@totalDeficit}) = true
) then
total := totext(x + ({#TOTAL_REC_COR})+ ({#TOTAL_REC_CAP}) + ({#TOTAL_INTRA_CORR}))
essas condições estão em um relatorio crystal que tenho que reproduzir no jasper.
Tem como reproduzir isso no jasper ?