From: <jt...@hy...> - 2007-06-25 22:30:01
|
Author: jtravis Date: 2007-06-25 15:29:38 -0700 (Mon, 25 Jun 2007) New Revision: 4913 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=4913 Modified: trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy Log: Add lastPage and pageNum to return in JSON .. right now just dummy Modified: trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy =================================================================== --- trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy 2007-06-25 22:15:33 UTC (rev 4912) +++ trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy 2007-06-25 22:29:38 UTC (rev 4913) @@ -213,6 +213,7 @@ def pageNum = new Integer(params.getOne("pageNum", "0")) def pageSize = new Integer(params.getOne("pageSize", "20")) def pageInfo = PageInfo.create(pageNum, pageSize, sortColumn, sortOrder) + def lastPage = false def data = schema.getData(pageInfo) JSONArray jsonData = new JSONArray() @@ -233,8 +234,10 @@ jsonData.put(val) } - [data : jsonData, + [data : jsonData, sortField : sortColumn.description, - sortOrder : sortOrder] as JSONObject + sortOrder : sortOrder, + pageNum : pageNum, + lastPage : lastPage] as JSONObject } } |