PDA

View Full Version : Values are not passing through the list box



amvmendoza
08-29-2005, 04:07 PM
I need help. When I choose certain categories from each list box, the values are not passing through when I click on refresh except only when assign a value, of course. Is there anything visible in the code which is a quick fix?

Any assistance would be helpful. Thanks.


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PMO Reports</title>
<style type="text/css">
<!--
.subject{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
margin-top: 6px;
}
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #004A91;
font-weight: bold;
}
-->
</style>
</head>

<body>
<form name = 'PMO_Form'>
<table width='839' height='73' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td height='26' valign='top' width='451' align='center'>
<input type='button' value='Refresh' name='Refresh' ONCLICK='SubmitForm();' ></td>
<td height='28' valign='top' width='198'>&nbsp;</td>
<td width='608' height="26">
<p align="center"><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' ><b>
Tech Team</b></font></td>
<td width='726' height="26"><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' ><b>&nbsp;&nbsp;Status&nbsp;&nbsp;</b></font></td>
<td name='lblBusUnit' width='158' height='26'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' ><b>&nbsp;&nbsp;Business Unit</b></font></td>
<td width='209' height='26'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' ><b>&nbsp;&nbsp;System&nbsp;&nbsp;</b></font></td>
<td width='209' height='26'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' ><b>&nbsp;&nbsp;Analyst&nbsp;&nbsp;</b></font></td>
</tr>
<tr>
<td width='451' height='18' valign='top'><p class='subject'> Report Type&nbsp;</p></td>
<td width='219' height='18'>
<select name='ReportType'>
<option value='Active' selected>Active</option>
<option value='Completed'>Completed</option>
<option value='NotStarted'>Not Started</option>
<option value='Stacked'>Stacked</option></select>
</td>
<td width='634' rowspan='3' align='left' valign='top' height='43'>
<p align="center"><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' >&nbsp;</font>
<select name='valTechTeam' size='5' multiple>
<option value='All' selected>All</option>
<option value='BA'>BA</option>
<option value='BI'>BI</option>
<option value='IN'>IN</option>
<option value='MK'>MK</option>
</select>
</td>
<td width='234' rowspan='3' align='left' valign='top' height='43'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' >&nbsp;</font>
<select name='valStatus' size='5' multiple>
<option selected>All</option>
<option>Active</option>
<option>Completed</option>
<option value='NotStarted'>Not Started</option>
</select>
</td>
<td width='182' rowspan='3' align='left' valign='top' height='43'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' >&nbsp;</font>
<select name='valBusinessUnit' size='5' multiple>
<option selected>All<option>B2B</option><option>Central Services</option><option>CMD Relations</option><option>Compliance</option><option>Finance</option><option>Internet</option><option>Lead Management</option><option>National Sales</option><option>Operations</option><option>Product/Pricing</option><option>Risk Management</option><option>Sales & Marketing</option><option>Technology</option><option>UnKnown</option>
</select>
</td>
<td width='222' rowspan='3' align='left' valign='top' height='43'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' >&nbsp;</font>
<select name='valSystem' size='5' multiple>
<option selected>All<option>Access</option><option>ACT 2000</option><option>Actuate</option><option>ADVANTedge</option><option>AS/400</option><option>Atlas</option><option>B2C</option><option>BBE</option><option>Clues</option><option>DIDO</option><option>DynamicDocs</option><option>EDGE</option><option>FSL.com</option><option>Hardware Requirement</option><option>Horizon</option><option>Houdini</option><option>http: ai</option><option>Intranet</option><option>Lotus Notes</option><option>MMS</option><option>Mustang</option><option>Nautilus - FBW</option><option>OrgMart</option><option>Other</option><option>Peoplemart</option><option>RightFax</option><option>SILCS/ELMS</option><option>Status Mart</option><option>Tracker</option><option>Turquoise</option><option>UnKnown</option>
</select>
</td>
<td width='222' rowspan='3' align='left' valign='top' height='43'><font size='2' face='Arial, Helvetica, sans-serif' color='#004A91' >&nbsp;</font>
<select name='valAnalyst' size='5' multiple>
<option selected>All<option>Annemarie Anderson</option><option>Betsy Bour</option><option>Brian Castilho</option><option>Carl Shannon</option><option>Donna Hartney</option><option>Eddy Yuan</option><option>Frank Rusman</option><option>Gary Turchan</option><option>Janice Coleman</option><option>Janice Strassburg</option><option>Joel Gantell</option><option>Kaushal Mehta</option><option>Lauren Horiuchi</option><option>Linda M Mayfield</option><option>Manohara Maddineni</option><option>Marion Forbes</option><option>Mark Pettibone</option><option>Peter Presnell</option><option>Rick Seymour</option><option>Sara Rosales</option><option>Sreenivasa Munagala</option><option>Steve Buchanan</option><option>Sudhamshu Reddy Beeravolu</option><option>Thomas Zapata</option><option>Vera Perez</option><option>Vicki Danko</option>
</select>
</td>

</tr>
<tr>
<td height='18' valign='top' width='451'><p class='subject'>Grouping</p></td>
<td width='198' height='18'>
<select name='group1'>
<option value='None' selected>None</option>
<option value='BusinessUnit'>Business Unit</option>
<option value='ProjectType'>Project Type</option>
<option value='PrimarySystem'>System</option>
<option value='TechTeam'>Tech Team</option></select>
</td>
</tr>
<tr>
<td height='18' valign='top' width='451'><p class='subject'>Sorting</p></td>
<td width='198' height='18'>
<select name='sort1'>
<option value='FSLPriority' selected>FSL Priority</option>
<option value='Phase'>Phase</option>
<option value='CompleteDate'>Completion Date</option>
<option value='OriginationDate'>Origination Date</option>
<option value='ProjStartDate'>Start Date</option> </select>
</tr>
</table>
</form>
</body>
<SCRIPT language=JavaScript>
function SubmitForm( )
{
// Selected Business Units
var objBusUnit;
var strBusUnit;
strBusUnit = '';
objBusUnit=document.getElementById("valBusinessUnit");
var i;
for(i=0;i<objBusUnit.length;i++)
{
if(objBusUnit.options[i].selected==true)
{
if (strBusUnit == '')
{
strBusUnit = "'" + objBusUnit.options[i].text + "'" ;
}
else
{
strBusUnit = strBusUnit + ',' + "'" + objBusUnit.options[i].text + "'" ;
}
}
}
// Selected Systems
var objSystem;
var strSystem;
strSystem = '';
objSystem=document.getElementById("valSystem");
var i;
for(i=0;i<objSystem.length;i++)
{
if(objSystem.options[i].selected==true)
{
if (strSystem == '')
{
strSystem = "'" + objSystem.options[i].text + "'" ;
}
else
{
strSystem = strSystem + ',' + "'" + objSystem.options[i].text + "'" ;
}
}
}
// Selected Tech Teams
var objTechTeam;
var strTechTeam;
strTechTeam = '';
objTechTeam=document.getElementById("valTechTeam");
var i;
for(i=0;i<objTechTeam.length;i++)
{
if(objTechTeam.options[i].selected==true)
{
if (strTechTeam == '')
{
strTechTeam = "'" + objTechTeam.options[i].text + "'" ;
}
else
{
strTechTeam = strTechTeam + ',' + "'" + objTechTeam.options[i].text + "'" ;
}
}
}

// Selected Status
var objStatus;
var strStatus;
strStatus = '';
objStatus=document.getElementById("valStatus");
var i;
for(i=0;i<objStatus.length;i++)
{
if(objStatus.options[i].selected==true)
{
if (strStatus == '')
{
strStatus = "'" + objStatus.options[i].text + "'" ;
}
else
{
strStatus = strStatus + ',' + "'" + objStatus.options[i].text + "'" ;
}
}
}

var rcpath = 'http://rosfsl01:8470/dev/newrequest/do_executereport.jsp?&'
var rptName= '__executableName=/Dev/Sreenivas/5800_ACT_1150_FslPMODynamic.rox&'
var svrName= 'requestType=immediate&serverURL=http://ROSFSL01:8000&volume=rosfsl01&'
var p1 = 'parmReportType='+document.PMO_Form.ReportType.value+'&'
var p2 = 'parmGroup1='+document.PMO_Form.group1.value+'&'
var p3 = 'parmBusUnit='+document.PMO_Form.valBusinessUnit.value+'&'
var p4 = 'parmSystem='+document.PMO_Form.valSystem.value+'&'
var p5 = 'parmAnalyst='+document.PMO_Form.valAnalyst.value+'&'
var p6 = 'parmSort1='+document.PMO_Form.sort1.value+'&'
var p7 = 'parmTechTeam='+document.PMO_Form.valTechTeam.value+'&'
var p8 = 'parmStatus='+document.PMO_Form.valStatus.value
var inurl = rcpath+rptName+svrName+p1+p2+p3+p4+p5+p6+p7+p8+'&__overwrite=old'
document.write(inurl);
//window.open(inurl);
//parent.window.location.href=inurl;
}
</SCRIPT>
</html>