Hi!
I searched the forum and found an example on how to show only say 5 results of a query per page. This works fine, however, when i try and see the next page I get the following error:
An error occurred while evaluating the expression:
#searchCriteria#
Error near line 47, column 12.
--------------------------------------------------------------------------------
Error resolving parameter SEARCHCRITERIA
ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:
You have misspelled the parameter name, or
You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.
The error occurred while processing an element with a general identifier of (#searchCriteria#)
SearchCriteria is the name of a checkbox the user selects on page which the user sets the search criteria (USM_Search_Scree.cfm).
Can anyone help?
This is the cf code:
</cfoutput>
<table border="0">
<tr>
<td align="center" valign="middle"> </td>
<td>
<!--- If Previous is true, display the previous link. --->
<cfif previous>
<cfoutput>
<a href ="USM_Results_Screen.cfm?StartRow=#PreviousStart#&PageNum=#DecrementValue(PageNum)#"> « Previous</a>
</cfoutput>
<cfelse>
</cfif>
</td>
<cfloop from = "1" to = "#NumPages#" index = "ThisPage">
<cfoutput>
<cfif thispage is pagenum>
<td><b>[#ThisPage#]</b></td>
<cfelse>
<cfset pagenumstart = (((thispage - 1) * oneachpage) + 1)>
<td>
<a href ="USM_Results_Screen.cfm?StartRow=#PageNumStart#&PageNum=#ThisPage#"> #ThisPage#</a></td>
</cfif>
</cfoutput>
</cfloop>
<td>
<!--- If Next is true, display the previous link. --->
<cfif next>
<cfoutput>
<a href ="USM_Results_Screen.cfm?StartRow=#NextStart#&PageNum=#IncrementValue(PageNum)#"> Next »</a>
</cfoutput>
<cfelse>
</cfif>
</td>
</tr>
</table>
Thanks
Julie
I searched the forum and found an example on how to show only say 5 results of a query per page. This works fine, however, when i try and see the next page I get the following error:
An error occurred while evaluating the expression:
#searchCriteria#
Error near line 47, column 12.
--------------------------------------------------------------------------------
Error resolving parameter SEARCHCRITERIA
ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:
You have misspelled the parameter name, or
You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.
The error occurred while processing an element with a general identifier of (#searchCriteria#)
SearchCriteria is the name of a checkbox the user selects on page which the user sets the search criteria (USM_Search_Scree.cfm).
Can anyone help?
This is the cf code:
</cfoutput>
<table border="0">
<tr>
<td align="center" valign="middle"> </td>
<td>
<!--- If Previous is true, display the previous link. --->
<cfif previous>
<cfoutput>
<a href ="USM_Results_Screen.cfm?StartRow=#PreviousStart#&PageNum=#DecrementValue(PageNum)#"> « Previous</a>
</cfoutput>
<cfelse>
</cfif>
</td>
<cfloop from = "1" to = "#NumPages#" index = "ThisPage">
<cfoutput>
<cfif thispage is pagenum>
<td><b>[#ThisPage#]</b></td>
<cfelse>
<cfset pagenumstart = (((thispage - 1) * oneachpage) + 1)>
<td>
<a href ="USM_Results_Screen.cfm?StartRow=#PageNumStart#&PageNum=#ThisPage#"> #ThisPage#</a></td>
</cfif>
</cfoutput>
</cfloop>
<td>
<!--- If Next is true, display the previous link. --->
<cfif next>
<cfoutput>
<a href ="USM_Results_Screen.cfm?StartRow=#NextStart#&PageNum=#IncrementValue(PageNum)#"> Next »</a>
</cfoutput>
<cfelse>
</cfif>
</td>
</tr>
</table>
Thanks
Julie