%--
title : graph1.jsp
Copyright (c) Avman Systems, Inc.
All rights reserved
Update Log 10/12/02 ajay & nand chamges
--%><%@ taglib prefix="RR" uri="RRSupport.tld" %>
<% String datasrc = (String) session.getAttribute("datasrc");
String rptid = request.getParameter("rptid");
String graphid = request.getParameter("graphid");
%>
SELECT graphid, rptid, graphtitle,
valuerptfldid, namerptfldid, graphtype,
graphorient, showlegend, backgroundcolor, comments,
Sumvaluefld, sortfldid, blocksize, graphsize,
rowspace, showitems, showvalue, pieHeight, piewidth, num1 as func,
num2 as valuefield2, text1 as func2,
num3 as valuefield3, num4 as func3
From graphinf
where graphid = <%=graphid%>
SELECT RPTFLDS.RPTFLDID, RPTFLDS.FLDDESC
FROM RPTFLDS
where rptid = <%=rptid%>
SELECT s.rptfldid as sortfldid, f.flddesc as sortflddesc
FROM sortinfo s, rptflds r, fldinfo f
where s.printtot =1 and
s.rptfldid = r.rptfldid and
r.rptid = <%=rptid%> and
f.fldid = r.fldid
SELECT dbtables.Tbltype as tbltype
FROM dbtables, tblinfo, rpttbl
WHERE tblinfo.dbtid=dbtables.dbtid and
tblinfo.tblid = rpttbl.tblid and
rpttbl.rptid = <%=rptid%>