|
aipnit -> RE: sorting columns... I know, I know... (1/29/2007 14:15:22)
|
Duane, Regarding the sorting columns as discussed, I have added search criteria and now it doesn't work. I have been looking at the following threads and trying to implement them into my situation, but I haven't come up with a solution. http://www.frontpagewebmaster.com/m-251079/key-sort%252Ccolumns/tm.htm#251147 http://www.frontpagewebmaster.com/m-183746/key-sort%252Ccolumns/tm.htm#183746 However, because my search criteria doesn't match my result columns, I can't get it to work. I assume that is why. For example, my search is: CARESApplicable, Category, and/or Keyword and my results are: CourseTrainingName, StartDate, ClassDayEve, Location1, CARESApplicable. Here is my code that I have adjusted from reading the above threads:
<a href="default.asp?SortColumn=CourseTrainingName&CourseTrainingName=<%=Session("CourseTrainingName")%>">
<font color="#0000FF">CourseTrainingName</font></a>
<a href="default.asp?SortColumn=StartDate&StartDate=<%=Session("StartDate")%>">
<font color="#0000FF">StartDate</font></a>
<a href="default.asp?SortColumn=ClassDayEve&ClassDayEve=<%=Session("ClassDayEve")%>">
<font color="#0000FF">ClassDayEve</font></a>
<a href="default.asp?SortColumn=Location1&Location1=<%=Session("Location1")%>">
<font color="#0000FF">Location1</font></a>
<a href="default.asp?SortColumn=CARESApplicable&CARESApplicable=<%=Session("CARESApplicable")%>">
<font color="0000FF">CARESApplicable</font></a>
<% end if%>
<%
If Request.Form("CourseTrainingName") <>"" Then
Session("CourseTrainingName") = Request.Form("CourseTrainingName")
Else
Session("CourseTrainingName") = "%"
End If
CourseTrainingName= Session("CourseTrainingName")
%>
<%
fp_sQry="SELECT * FROM viewclasses WHERE (CARESApplicable LIKE '%::CARESApplicable::%' AND Category LIKE '%::Category::%' AND Keyword LIKE '%::Keyword::%') ORDER BY ::SortColumn:: ASC"
fp_sDefault="SortColumn=CourseTrainingName"
fp_sNoRecords="<tr><td colspan=5 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="CARES_DB"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&CourseTrainingName=202&StartDate=135&ClassDayEve=202&Location1=202&CARESApplicable=202&"
fp_iDisplayCols=5
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
The error that comes up is below - I have checked out the MS knowledge base article, but it doesn't seem to apply. Database Results Wizard Error Your page contains a query with user input parameters that could not be resolved. This could happen if your DatabaseRegionStart webbot has an empty or missing s-columnnames or s-columntypes attributes. You may need to read Microsoft Knowledge Base Article 817029. One or more form fields were empty. You should provide default values for all form fields that are used in the query. Thank you again! AP
|
|
|
|