As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var skipCount=args["startIndex"]; var sortField=args["sort"]; var sortOrder=args["dir"]; var pageSize = args["rowsPerPage"]; var sortingOrder=true; if(sortOrder =="desc") { sortingOrder=false; } var sortInfo = { column: "@{prefix:customModel}articlePrintTitle", ascending: sortingOrder }; var query = "PATH:\"/app:company_home/st:sites/cm:" + sitename + "/cm:Article//*\" AND TYPE:\"prefix:article\""; var paging = { maxItems: pageSize, skipCount:skipCount }; var limitQuery = { query: query, store: "workspace://SpacesStore", language: "lucene", sort:[sortInfo], page: paging }; var result = search.query(limitQuery);
http://localhost:8080/share/proxy/alfresco/repository/article?sitename=testSite&filterStatus=All&userName=admin&sort=articlePrintTitle&dir=asc&startIndex=0 &rowsPerPage=25