Created
April 25, 2010 20:12
-
-
Save joshknutson/378683 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset startRow = ((page-1) * pageSize) + 1 /> | |
<cfset endRow = startRow + pageSize - 1 /> | |
<cfset tmpQuery = queryNew(get_query.columnList) /> | |
<cfloop query="get_query" startRow="#startRow#" endRow="#endRow#"> | |
<cfset tmp = queryAddRow(tmpQuery) /> | |
<cfloop list="#get_query.columnList#" index="column"> | |
<cfset tmp = querySetCell(tmpQuery,column,evaluate("get_query.#column#")) /> | |
</cfloop> | |
</cfloop> | |
<cfset gridQuery = structNew() /> | |
<cfset gridQuery.query = tmpQuery /> | |
<cfset gridQuery.totalrowcount = get_query.recordcount /> | |
<cfreturn gridQuery /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment