<%@page import="com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.*"%> <%@page import="com.fitbank.jasperserver.WSClient"%> <%@page import="com.fitbank.jasperserver.Login"%> <%@page import="java.util.*"%> <% WSClient client = (WSClient) session.getAttribute("client"); ResourceDescriptor reportUnit = (ResourceDescriptor) request.getAttribute("reportUnit"); int parametersCount = 0; List list = reportUnit.getChildren(); String dsUri = null; for (int i = 0; i < list.size(); ++i) { ResourceDescriptor rd = (ResourceDescriptor) list.get(i); if (rd.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE)) { dsUri = rd.getReferenceUri(); } else if (rd.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE) || rd.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_JDBC) || rd.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_JNDI) || rd.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_BEAN)) { dsUri = rd.getUriString(); } } for (int i = 0; i < list.size(); ++i) { ResourceDescriptor rd = (ResourceDescriptor) list.get(i); if (rd.getWsType().equals(ResourceDescriptor.TYPE_INPUT_CONTROL)) { parametersCount++; %> <% } } if (parametersCount > 0) { request.setAttribute("hasParameters", Boolean.TRUE); } %>
<%=rd.getLabel()%>: <% if (rd.getControlType() == ResourceDescriptor.IC_TYPE_BOOLEAN) { %> <% } else if (rd.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_VALUE || rd.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_LIST_OF_VALUES || rd.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY) { String type = rd.getDescription(); if(type.indexOf("LV")==0){ type=type.substring(2); %>
<%}else{ %> > <% } } %>