<%-- title : graph12.jsp Copyright (c) Avman Systems, Inc. All rights reserved Update Log 12/10/02 Ajay --%><%@ taglib prefix="RR" uri="RRSupport.tld" %> <% String datasrc = (String) session.getAttribute("datasrc"); String rptid = request.getParameter("rptid"); String graphid = request.getParameter("graphid"); String graphtypes = request.getParameter("graphtypes"); String funcfield = request.getParameter("funcfield"); String funcfield2 = request.getParameter("funcfield2"); String funcfield3 = request.getParameter("funcfield3"); String graphpieheight = ""; String graphpiewidth = ""; String graphblocksize = ""; String bargraphsize = ""; %> SELECT rptname FROM rpttbl where rpttbl.rptid = <%=rptid%>
Create/Modify Graph
<% String sumvalueYN; %> <% String showlegendyn; %> <% String barrowspaceyn; %> <% if (request.getParameter("sumvalueyn") == null) { sumvalueYN = "0"; } else { sumvalueYN = request.getParameter("sumvalueyn"); } %> <% if (request.getParameter("showlegend") == null) { showlegendyn = "0"; } else { showlegendyn = request.getParameter("showlegend"); } %> <% if (request.getParameter("barrowspace") == null) { barrowspaceyn = "0"; } else { barrowspaceyn = request.getParameter("barrowspace"); }%> <% if (graphid.equals("0")) { graphpieheight = "400"; graphpiewidth = "400"; graphblocksize = "400"; bargraphsize = "400"; } else { graphpieheight = request.getParameter("graphpieheight"); graphpiewidth = request.getParameter("graphpiewidth"); graphblocksize = request.getParameter("graphblocksize"); bargraphsize = request.getParameter("bargraphsize"); }%> <%-- --%> <% if (request.getParameter("graphtypes") == null) { %> NULL - Graphtypes is null <% } else if (request.getParameter("graphtypes").equalsIgnoreCase("BarGraph") || request.getParameter("graphtypes").equalsIgnoreCase("LineGraph") || request.getParameter("graphtypes").equalsIgnoreCase("GroupBar")) {%> <% } else if (request.getParameter("graphtypes").equalsIgnoreCase("Piechart")) { %> <% if (barrowspaceyn.equals("")) { %> <% } else {%> <% } %> <% if (request.getParameter("graphorient").equals("")) { %> <% } else {%> <% } %> <% } %> <%-- end of if graphtypes is piechart or bargraph --%>
Report Name: <%= rptname.Field("rptname")%>
Graph Type: <%= request.getParameter("graphtypes") %>
Graph Name: <%= request.getParameter("graphtitle") %>
Graph Style: <%out.flush();%> <%----%>
Row Space: <% if (barrowspaceyn.equals("1")) { %> <% } else { %> <% } %>
[Check box only, if a blank line is to be inserted between each bar]
Block Size:
[Relative size of data blocks. Default is based on the largest value in the data string]
Graph Width:
[Can be specific or percentage. Default is based on the largest value in the data string]
Width:
Height:
<% if (graphid.equals("0")) { %> <% } else {%> <% } %>
<% rptname.close(); %>