I have a Matrix report on Pending Status for all Requests grouped by Group. The titles for the pending status come up as "false" and "true". How can I modify the titles to show "Closed" and "Open"? I tried to open the report query, modifying that and running the query, but I get an error.
Here is the query:
SELECT std.ISPENDING "Pending Status",qd.QUEUENAME "Group",wo.WORKORDERID "Request ID" FROM WorkOrder wo LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID LEFT JOIN StatusDefinition std ON wos.STATUSID=std.STATUSID LEFT JOIN WorkOrder_Queue woq ON wo.WORKORDERID=woq.WORKORDERID LEFT JOIN QueueDefinition qd ON woq.QUEUEID=qd.QUEUEID WHERE ((((qd.QUEUENAME != N'Billing Team MM' COLLATE SQL_Latin1_General_CP1_CS_AS) AND (qd.QUEUENAME != N'Price and Rate Group' COLLATE SQL_Latin1_General_CP1_CS_AS)) OR (qd.QUEUENAME IS NULL)) AND (((wo.CREATEDTIME >= datetolong('1387083600000') AND ((wo.CREATEDTIME != 0) AND (wo.CREATEDTIME IS NOT NULL))) AND ((wo.CREATEDTIME <= datetolong('1451710799000') AND (((wo.CREATEDTIME != 0) AND (wo.CREATEDTIME IS NOT NULL)) AND (wo.CREATEDTIME != -1))))) AND wo.ISPARENT=1
and the error I get, even when running this query without modifying:
java.lang.Exception: Syntax error : function LONGTODATE not closed properly!
at com.adventnet.servicedesk.reports.utils.ReportUtil.parseDateCriteriaColumns(ReportUtil.java:2312)
at com.adventnet.servicedesk.reports.utils.CoreReportDesigner.generateSQLReport(CoreReportDesigner.java:7529)
at com.adventnet.servicedesk.reports.action.ReportRequestHandler.runSQLQueryReport(ReportRequestHandler.java:1595)
at com.adventnet.servicedesk.reports.action.ReportRequestHandler.handleRequest(ReportRequestHandler.java:1890)
at com.adventnet.servicedesk.reports.action.CustomReportHandler.handleRequest(CustomReportHandler.java:176)
at com.adventnet.servicedesk.reports.action.ReportHandler.execute(ReportHandler.java:59)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
.... and the error report goes on.
at com.adventnet.servicedesk.reports.utils.ReportUtil.parseDateCriteriaColumns(ReportUtil.java:2312)
at com.adventnet.servicedesk.reports.utils.CoreReportDesigner.generateSQLReport(CoreReportDesigner.java:7529)
at com.adventnet.servicedesk.reports.action.ReportRequestHandler.runSQLQueryReport(ReportRequestHandler.java:1595)
at com.adventnet.servicedesk.reports.action.ReportRequestHandler.handleRequest(ReportRequestHandler.java:1890)
at com.adventnet.servicedesk.reports.action.CustomReportHandler.handleRequest(CustomReportHandler.java:176)
at com.adventnet.servicedesk.reports.action.ReportHandler.execute(ReportHandler.java:59)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
.... and the error report goes on.
How can I modify the headers, and how can I get past this error?