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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -