I updated those files that get jacked with FP2K3 AND put it on a diet and just pasted the code and it does go.
However, I am experiencing some logistic issues.
The page is a details page that gets populated based on the link from the previous page that contains the criteria.
This details page is a form with several text boxes, radio buttons and check boxes. For all the radio buttons and check boxes I use IF / THEN statements to make them selected based on the contents of that record in the db.
The issue is that there are 5 check boxes that have some (or all) of the boxes checked and some not. These may or may not get updated but the ones that are not selected kick back an error when trying to update with the 'One or more form fields were empty. You should provide default values for all form fields that are used in the query.' error.
On the initial add page, the same scenerio is there where some or all may be checked and that works fine.
So why am I unable to populate these boxes with the results of a query but am unable to submit my changes if I leave unchecked boxes?
Thoughts?
Thanks
Nate
Here is the page that is populated:
<!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT COUNT(*) as howMANY FROM tblUPDATES WHERE updateREQID=::reqID::"
fp_sDefault="updateREQID="
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="connNWRDATA"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&howMANY=3&updateBY=202&updateWHEN=135&updateMEMO=203&updateREQID=3&updateID=3&"
fp_iDisplayCols=1
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<%theCOUNT=FP_FieldVal(fp_rs,"howMANY")%>
<!--#include file="../_fpclass/fpdbrgn2.inc"-->
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_LCID = 1033 %>
<meta http-equiv="Content-Language" content="en-us">
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Network Request Tracking</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body>
<div align="center">
<table border="0" id="table4">
<tr>
<td><b><font face="Verdana" size="2" color="#000080">Network Request Tracking</font></b></td>
</tr>
</table>
</div>
<!--webbot bot="DatabaseRegionStart" s-columnnames="reqID,reqSUBMITTEDBY,reqSUBMITTEDGROUP,reqSUBMITTEDDATE,reqSUBMITTEDTIME,reqSUBMITTEDFOR,reqDUEDATE,reqTYPE_CONTENT,reqTYPE_FIREWALL,reqTYPE_IP,reqTYPE_PORT,reqTYPE_SSL,reqTICKETCREATED,reqTICKETNUMBER,reqTICKETASSIGNED,reqTICKETOWNER,reqSUMMARY,reqRECIEVED,reqFORMLINK,reqSTATUS,reqWHEN" s-columntypes="3,202,3,135,135,202,135,11,11,11,11,11,202,3,202,202,203,202,202,202,135" s-dataconnection="connNWRDATA" b-tableformat="FALSE" b-menuformat="FALSE" s-menuchoice="reqID" s-menuvalue="reqID" b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="7" b-makeform="FALSE" s-recordsource="tblREQUESTS" s-displaycolumns="reqID,reqSUBMITTEDBY,reqSUBMITTEDGROUP,reqSUBMITTEDDATE,reqSUBMITTEDTIME,reqSUBMITTEDFOR,reqDUEDATE,reqTICKETCREATED,reqTICKETNUMBER,reqTICKETASSIGNED,reqTICKETOWNER,reqSUMMARY,reqRECIEVED,reqSTATUS,reqTYPE_CONTENT,reqTYPE_FIREWALL,reqTYPE_IP,reqTYPE_PORT,reqTYPE_SSL,reqFORMLINK" s-criteria="{reqID} EQ {reqID} +" s-order="[reqID] +" s-sql="SELECT * FROM tblREQUESTS WHERE (reqID = ::reqID::) ORDER BY reqID ASC" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="reqID=" s-norecordsfound="There Are Currently No Network Requests" i-maxrecords="0" i-groupsize="0" botid="0" u-dblib="../_fpclass/fpdblib.inc" u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc" tag="BODY" preview="<table border=0 width="100%"><tr><td bgcolor="#FFFF00"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr></table>" startspan b-UseDotNET="FALSE" CurrentExt sa-InputTypes="3" b-DataGridFormat="FALSE" b-DGridAlternate="TRUE" sa-CritTypes="3" b-WasTableFormat="FALSE" b-ReplaceDatabaseRegion="FALSE" --><!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM tblREQUESTS WHERE (reqID = ::reqID::) ORDER BY reqID ASC"
fp_sDefault="reqID="
fp_sNoRecords="There Are Currently No Network Requests"
fp_sDataConn="connNWRDATA"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice="reqID"
fp_sMenuValue="reqID"
fp_sColTypes="&reqID=3&reqSUBMITTEDBY=202&reqSUBMITTEDGROUP=3&reqSUBMITTEDDATE=135&reqSUBMITTEDTIME=135&reqSUBMITTEDFOR=202&reqDUEDATE=135&reqTYPE_CONTENT=11&reqTYPE_FIREWALL=11&reqTYPE_IP=11&reqTYPE_PORT=11&reqTYPE_SSL=11&reqTICKETCREATED=202&reqTICKETNUMBER=3&reqTICKETASSIGNED=202&reqTICKETOWNER=202&reqSUMMARY=203&reqRECIEVED=202&reqFORMLINK=202&reqSTATUS=202&reqWHEN=135&"
fp_iDisplayCols=20
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="20863" --><form METHOD="POST" action="reqDETAIL_updatedetail.asp?reqID=<%=FP_FieldURL(fp_rs,"reqID")%>">
<!--webbot bot="PurpleText" preview="Set this form's properties so it submits user input to the appropriate page." --><div align="center">
<table BORDER="0">
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
ID:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqID" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqID")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Submitted By:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqSUBMITTEDBY" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqSUBMITTEDBY")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Submitter's Group:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqSUBMITTEDGROUP" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqSUBMITTEDGROUP")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Submitted Date:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqSUBMITTEDDATE" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqSUBMITTEDDATE")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Submitted Time:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqSUBMITTEDTIME" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqSUBMITTEDTIME")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Submitted On Behalf Of:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqSUBMITTEDFOR" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqSUBMITTEDFOR")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Due Date:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqDUEDATE" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqDUEDATE")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Type:</font></b></td>
<td align="right" width="15"> </td>
<td>
<table border="0" id="table5" cellspacing="0" cellpadding="0">
<tr>
<td>
<font color="#000080" size="1" face="Verdana">
<input type="checkbox" name="reqTYPE_CONTENT" value="True" <%If FP_Field(fp_rs,"reqTYPE_CONTENT") ="True" then response.write " checked"%>></font></td>
<td width="15"> </td>
<td>
<font face="Verdana" size="1" color="#000080">Content</font></td>
<td width="35"> </td>
<td width="150"><i>
<font face="Verdana" size="1" color="#808080">
Content Requests: i.e. VIP</font></i></td>
</tr>
<tr>
<td>
<font color="#000080" size="1" face="Verdana">
<input type="checkbox" name="reqTYPE_FIREWALL" value="True" <%If FP_Field(fp_rs,"reqTYPE_FIREWALL") ="True" then response.write " checked"%>></font></td>
<td width="15"> </td>
<td>
<font face="Verdana" size="1" color="#000080">Firewall</font></td>
<td width="35"> </td>
<td width="150"><i>
<font face="Verdana" size="1" color="#808080">Firewall Requests</font></i></td>
</tr>
<tr>
<td>
<font color="#000080" size="1" face="Verdana">
<input type="checkbox" name="reqTYPE_IP" value="True" <%If FP_Field(fp_rs,"reqTYPE_IP") ="True" then response.write " checked"%>></font></td>
<td width="15"> </td>
<td>
<font face="Verdana" size="1" color="#000080">IP</font></td>
<td width="35"> </td>
<td width="150"><i>
<font face="Verdana" size="1" color="#808080">IP Requests</font></i></td>
</tr>
<tr>
<td>
<font color="#000080" size="1" face="Verdana">
<input type="checkbox" name="reqTYPE_PORT" value="True" <%If FP_Field(fp_rs,"reqTYPE_PORT") ="True" then response.write " checked"%>></font></td>
<td width="15"> </td>
<td>
<font face="Verdana" size="1" color="#000080">Port</font></td>
<td width="35"> </td>
<td width="150"><i>
<font face="Verdana" size="1" color="#808080">Port Requests</font></i></td>
</tr>
<tr>
<td>
<font color="#000080" size="1" face="Verdana">
<input type="checkbox" name="reqTYPE_SSL" value="True" <%If FP_Field(fp_rs,"reqTYPE_SSL") ="True" then response.write " checked"%>></font></td>
<td width="15"> </td>
<td>
<font face="Verdana" size="1" color="#000080">SSL</font></td>
<td width="35"> </td>
<td width="150"><i>
<font face="Verdana" size="1" color="#808080">SSL Requests</font></i></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Ticket Created:</font></b></td>
<td align="right" width="15"> </td>
<td>
<table border="0" id="table5" cellspacing="0" cellpadding="0">
<tr>
<td width="30" align="right">
<font face="Verdana" size="1" color="#000080">Yes</font></td>
<td width="30"><font color="#000080">
<input type="radio" value="Yes" name="reqTICKETCREATED" <%If FP_Field(fp_rs,"reqTICKETCREATED") ="Yes" then response.write " checked"%>></font></td>
<td width="30"> </td>
<td width="30" align="right">
<font face="Verdana" size="1" color="#000080">No</font></td>
<td width="30"><font color="#000080">
<input type="radio" value="No" name="reqTICKETCREATED" <%If FP_Field(fp_rs,"reqTICKETCREATED") ="No" then response.write " checked"%>></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Ticket Number:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqTICKETNUMBER" SIZE="40" VALUE="
<%IF FP_FieldHTML(fp_rs,"reqTICKETNUMBER") ="0" THEN%>
<%Response.Write ""%>
<%END IF%>
<%IF FP_FieldHTML(fp_rs,"reqTICKETNUMBER") <>"0" THEN%>
<%=FP_FieldHTML(fp_rs,"reqTICKETNUMBER")%>
<%END IF%>
" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Ticket Assigned:</font></b></td>
<td align="right" width="15"> </td>
<td>
<table border="0" id="table5" cellspacing="0" cellpadding="0">
<tr>
<td width="30" align="right">
<font face="Verdana" size="1" color="#000080">Yes</font></td>
<td width="30"><font color="#000080">
<input type="radio" value="Yes" name="reqTICKETASSIGNED" <%If FP_Field(fp_rs,"reqTICKETASSIGNED") ="Yes" then response.write " checked"%>></font></td>
<td width="30"> </td>
<td width="30" align="right">
<font face="Verdana" size="1" color="#000080">No</font></td>
<td width="30"><font color="#000080">
<input type="radio" value="No" name="reqTICKETASSIGNED" <%If FP_Field(fp_rs,"reqTICKETASSIGNED") ="No" then response.write " checked"%>></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Ticket Owner:</font></b></td>
<td align="right" width="15"> </td>
<td>
<input TYPE="TEXT" NAME="reqTICKETOWNER" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"reqTICKETOWNER")%>" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Summary:</font></b></td>
<td align="right" width="15"> </td>
<td>
<textarea rows="11" name="reqSUMMARY" cols="39" style="font-family: Verdana; font-size: 8pt; color: #000080"><%=FP_FieldHTML(fp_rs,"reqSUMMARY")%></textarea></td>
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Request Form Received:</font></b></td>
<td align="right" width="15"> </td>
<td>
<table border="0" id="table5" cellspacing="0" cellpadding="0">
<tr>
<td width="30" align="right">
<font face="Verdana" size="1" color="#000080">Yes</font></td>
<td width="30"><font color="#000080">
<input type="radio" value="Yes" name="reqRECIEVED" <%If FP_Field(fp_rs,"reqRECIEVED") ="Yes" then response.write " checked"%>></font></td>
<td width="30"> </td>
<td width="30" align="right">
<font face="Verdana" size="1" color="#000080">No</font></td>
<td width="30"><font color="#000080">
<input type="radio" value="No" name="reqRECIEVED" <%If FP_Field(fp_rs,"reqRECIEVED") ="No" then response.write " checked"%>></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- BEGIN HISTORY BUTTON -->
<% IF theCOUNT ="0" THEN %>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
View History:</font></b></td>
<td align="right" width="15"> </td>
<td>
<table border="0" width="100%" id="table6" cellspacing="0" cellpadding="0">
<tr>
<td>
<img border="0" src="../images/noform.jpg"></td>
</tr>
</table>
</td>
</tr>
<%END IF%>
<% IF theCOUNT <>"0" THEN %>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
View History:</font></b></td>
<td align="right" width="15"> </td>
<td>
<INPUT TYPE=button VALUE="View History" onClick="window.open('../Pages/reqHISTORY.asp?updateREQID=<%=FP_FieldURL(fp_rs,"reqID")%>')" style="font-family: Verdana; font-size: 8pt; color: #0000FF"></td>
</tr>
<%END IF%>
<!-- END HISTORY BUTTON -->
</tr>
<tr>
<td align="right"><b><font face="Verdana" size="1" color="#000080">
Current Status:</font></b></td>
<td align="right" width="15"> </td>
<td>
<select size="1" name="reqSTATUS" style="font-family: Verdana; font-size: 8pt; color: #000080">
<option <%If FP_Field(fp_rs,"reqSTATUS") ="New" then response.write " selected"%>>New</option>
<option <%If FP_Field(fp_rs,"reqSTATUS") ="Open" then response.write " selected"%>>Open</option>
<option <%If FP_Field(fp_rs,"reqSTATUS") ="Pending" then response.write " selected"%>>Pending</option>
<option <%If FP_Field(fp_rs,"reqSTATUS") ="Verify" then response.write " selected"%>>Verify</option>
<option <%If FP_Field(fp_rs,"reqSTATUS") ="Closed" then response.write " selected"%>>Closed</option>
</select></td>
</tr>
<tr>
<td COLSPAN="3"> </td>
</tr>
<tr>
<td COLSPAN="3">
<p align="center">
<input type="submit" value="[ Update Request ]" name="B1" style="font-family: Verdana; font-size: 8pt; color: #000080"></td>
</tr>
</table>
</div>
</form>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="FALSE" u-dbrgn2="../_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside tag="BODY" preview="<table border=0 width="100%"><tr><td bgcolor="#FFFF00"><font color="#000000">This is the end of a Database Results region.</font></td></tr></table>" startspan --><!--#include file="../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="56926" -->
</body>
</html>
Here is the code of the update page:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Network Request Tracking</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body>
<div align="center">
<table border="0" id="table4">
<tr>
<td><b><font face="Verdana" size="2" color="#000080">Network Request Tracking</font></b></td>
</tr>
</table>
</div>
<!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="UPDATE tblREQUESTS SET reqSUBMITTEDBY='::reqSUBMITTEDBY::', reqSUBMITTEDGROUP='::reqSUBMITTEDGROUP::', reqSUBMITTEDDATE=#::reqSUBMITTEDDATE::#, reqSUBMITTEDTIME=#::reqSUBMITTEDTIME::#, reqSUBMITTEDFOR='::reqSUBMITTEDFOR::', reqDUEDATE=#::reqDUEDATE::#, reqTYPE_CONTENT='::reqTYPE_CONTENT::', reqTYPE_FIREWALL='::reqTYPE_FIREWALL::', reqTYPE_IP='::reqTYPE_IP::', reqTYPE_PORT='::reqTYPE_PORT::', reqTYPE_SSL='::reqTYPE_SSL::', reqTICKETCREATED='::reqTICKETCREATED::', reqTICKETNUMBER=::reqTICKETNUMBER::, reqTICKETASSIGNED='::reqTICKETASSIGNED::', reqTICKETOWNER='::reqTICKETOWNER::', reqRECIEVED='::reqRECIEVED::', reqFORMLINK='::reqFORMLINK::', reqSTATUS='::reqSTATUS::', reqWHEN=#::reqWHEN::# WHERE reqID=::reqID::"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">There Are Currently No Network Requests</td></tr>"
fp_sDataConn="connNWRDATA"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&reqID=3&reqSUBMITTEDBY=202&reqSUBMITTEDGROUP=202&reqSUBMITTEDDATE=135&reqSUBMITTEDTIME=135&reqSUBMITTEDFOR=202&reqDUEDATE=135&reqTYPE_CONTENT=11&reqTYPE_FIREWALL=11&reqTYPE_IP=11&reqTYPE_PORT=11&reqTYPE_SSL=11&reqTICKETCREATED=202&reqTICKETNUMBER=3&reqTICKETASSIGNED=202&reqTICKETOWNER=202&reqSUMMARY=203&reqRECIEVED=202&reqFORMLINK=202&reqSTATUS=202&reqWHEN=135&"
fp_iDisplayCols=1
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--#include file="../_fpclass/fpdbrgn2.inc"-->
</body>
</html>