打印当列显示某些数据时的表达式

时间:2015-09-30 12:15:02

标签: jasper-reports

我有一个名为VW_PRINT MR的视图,它有一个名为DocStatus的列,DocStatus中有三种类型的值,它们是'CO','CL','DR

我尝试过使用Jasper Report同步视图。

"Documents Approved" DocStatus CO'Document has not Approved yet' 'DocStatus' 'DR' $F(VW_PRINTMR_DOCSTATUS)='CO' public HttpServletRequest request; public HttpServletResponse response; public void setServletRequest(HttpServletRequest request) { this.request = request; } public HttpServletRequest getServletRequest() { return request; } public void setServletResponse(HttpServletResponse response) { this.response = response; } public HttpServletResponse getServletResponse() { return response; } 时如何打印setServletRequest/Response()

我已尝试将$('#share').click(function(){ alert('NavigatorObj '+navigator.screenshot+ " WindowObj " + window.plugins.screenshot); } 放入Print When Expression中,但它不起作用。

1 个答案:

答案 0 :(得分:0)

有效! :

$F{VW_PRINTMR_DOCSTATUS}.replace("CO","Document is completed").replace("DR","Document has not approved").replace("CL","Document is closed").replace("AP","Document is Partially Approved").replace("IN","Document is Invalid")