Hi EJL,
I'm not sure whether you are looking for something like this,
-SET &ECHO='ALL';
-DEFAULT &GRTYPE=LINE
-DEFAULT &TYPESELINDEX=0;
-DEFAULT &FSSELINDEX=0;
-DEFAULT &FNSELINDEX=0;
-DEFAULT &DATVAL='false';
-DEFAULT &FNAME='Times New Roman';
-DEFAULT &FSIZE=14;
-DEFAULT &CTITLE=' ';
TABLE FILE CAR
PRINT DEALER_COST
CAR
BY COUNTRY
BY SALES
ON GRAPH HOLD AS GRAPHTEST
END
-HTMLFORM BEGIN
<HTML>
<HEAD>
<script LANGUAGE="JavaScript">
function getReport(val)
{
if(document.frm.DATVALUE.checked)
{
document.frm.DATVAL.value="true";
}
else
{
document.frm.DATVAL.value="false";
}
document.frm.TYPESELINDEX.value=document.frm.GRTYPE.selectedIndex;
document.frm.FSSELINDEX.value=document.frm.FSIZE.selectedIndex;
document.frm.FNSELINDEX.value=document.frm.FNAME.selectedIndex;
document.frm.submit();
}
function showSelected()
{
document.frm.GRTYPE.selectedIndex=&TYPESELINDEX;
document.frm.FNAME.selectedIndex=&FNSELINDEX;
document.frm.FSIZE.selectedIndex=&FSSELINDEX;
document.frm.DATVALUE.checked=&DATVAL
}
</SCRIPT>
</HEAD>
<form name="frm" action="http://YOURSERVERNAME/ibi_apps/WFServlet" method="POST">
<BODY onLoad="showSelected[)">
<table width="100" border="0" cellspacing="2" cellpadding="2">
<tr>
<td cellspacing="2" cellpadding="2" width="100" >Graph Type</td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" >Font Name</td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" >Font Size</td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" >Data Value</td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" >Chart Title</td>
<td colspan="4" ></td>
</tr>
<tr>
<td cellspacing="2" cellpadding="2" width="100" >
<SELECT name="GRTYPE" onChange="getReport[document.frm.GRTYPE.options[this.selectedIndex].value)">
<OPTION value="LINE">LINE</OPTION>
<OPTION value="PIE">PIE</OPTION>
<OPTION value="BAR">BAR</OPTION>
<OPTION value="VBAR">VBAR</OPTION>
<OPTION value="HBAR">HBAR</OPTION>
<OPTION value="SCATTER">SCATTER</OPTION>
<OPTION value="VAREA">AREA</OPTION>
<OPTION value="STOCK">STOCK</OPTION>
<OPTION value="POLAR">POLAR</OPTION>
<OPTION value="RADARA">RADAR</OPTION>
<OPTION value="BUBBLE">BUBBLE</OPTION>
<OPTION value="SPECTRAL">SPECTRAL</OPTION>
</SELECT>
</td><td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" >
<SELECT name="FNAME" onChange="getReport[document.frm.FNAME.options[this.selectedIndex].value)">
<OPTION value="Times New Roman">Times New Roman</OPTION>
<OPTION value="Courier">Courier</OPTION>
<OPTION value="Arial">Arial</OPTION>
</SELECT>
</td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" >
<SELECT name="FSIZE" onChange="getReport[document.frm.FSIZE.options[this.selectedIndex].value)">
<OPTION value="6">6</OPTION>
<OPTION value="8">8</OPTION>
<OPTION value="10">10</OPTION>
<OPTION value="12">12</OPTION>
<OPTION value="14">14</OPTION>
<OPTION value="16">16</OPTION>
<OPTION value="18">18</OPTION>
<OPTION value="20">20</OPTION>
<OPTION value="30">30</OPTION>
<OPTION value="40">40</OPTION>
</SELECT>
</td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" ><input type="checkbox" name="DATVALUE" onClick="getReport[this.value)"></td>
<td colspan="4" ></td>
<td cellspacing="2" cellpadding="2" width="100" ><input type="text" name="CTITLE" ></td>
<td cellspacing="2" cellpadding="2" width="100" >
<input type="button" name="apply" value=".." onClick="getReport[document.frm.CTITLE.value)"></td>
</tr>
</table>
<INPUT TYPE="HIDDEN" NAME="IBIF_ex" VALUE="test">
<input type="hidden" name="TYPESELINDEX" value="0">
<input type="hidden" name="FSSELINDEX" value="0">
<input type="hidden" name="FNSELINDEX" value="0">
<input type="hidden" name="DATVAL" value="false">
</BODY>
</form>
</HTML>
-HTMLFORM END
SET LOOKGRAPH=&GRTYPE
SET GRAPHEDIT=SERVER
SET GRID=OFF
DEFINE FILE GRAPHTEST
SALES/D12CM MISSING ON=IF SALES NE 0 THEN SALES ELSE MISSING;
END
SET GRAPHEDIT=ON
SET GRMERGE=ON
GRAPH FILE GRAPHTEST
WRITE SALES AS 'Sales'
BY CAR
ACROSS COUNTRY
ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setDisplay (getDataText(), &DATVAL);
setTextString (getTitle(),"&CTITLE");
setFontName (getO1Label(), "&FNAME" );
setFontSize(getO1Label(),&FSIZE);
setFontSizeAbsolute(getO1Label(),true);
setFontName (getY1Label(), "&FNAME");
setFontSize(getY1Label(),&FSIZE);
setFontSizeAbsolute(getY1Label(),true);
setDataTextRadiusDefault(75);
setTextRotation(getDataText(),2);
setTextJustHoriz(getDataText(),0);
setFontName (getDataText(), "&FNAME");
setFontSize(getDataText(),12);
setFontSizeAbsolute(getDataText(),true);
setPlace(true);
setY1MajorGridStep(15.0);
setY1MajorGridStepAuto(false);
-*setFillMissingData(0);
-**used to display legend whereever you want.********
-*setRect(getLegendArea(),new Rectangle(-15500,-15500,31000,4000));
setTransparentBorderColor(getLegendArea(),false);
setTransparentFillColor(getLegendArea(),false);
setTextJustHoriz(getLegendText(),0);
setLegendMarkerPosition(2);
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),9);
setLegendTextAutofit(true);
setLegendAutomatic(true);
-*********legend code ends here**************
ENDSTYLE
ON GRAPH SET STYLE *
ENDSTYLE
END
-EXIT
Hope this helps,
WFConsultant
WF 8105M on Win7/Tomcat