jasper reports - Print When Expression when column shows certain data -


i have view called vw_print mr, has column called docstatus, there 3 types of values in docstatus, 'co','cl','dr.

i've tried synchronize view jasper report.

how can print "documents approved" when docstatus co , 'document has not approved yet' when 'docstatus' 'dr' ?

i've tried putting $f(vw_printmr_docstatus)='co' in print when expression won't work.

it works! :

$f{vw_printmr_docstatus}.replace("co","document completed").replace("dr","document has not approved").replace("cl","document closed").replace("ap","document partially approved").replace("in","document invalid") 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -