Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] pagination & sorting
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] pagination & sorting
 Login/Join
 
Platinum Member
posted
Hi all,
i used the pagination techniques,But now i want to know How to sort in a particular page.
i.e; if i have 30 pages and each page has 10 records each then if i go to page 20 or 12 ,i need to sort the records in that corresponding page Desc order.
right now i can sort but what ever page i go ,my sorting is happening for all the 30 pages.

please help...

This message has been edited. Last edited by: Kerry,


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Reply With QuoteReport This Post
Expert
posted Hide Post
I think there are 305 people that don't understand your question.

Shouldn't this be solved by two BY statements?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Silver Member
posted Hide Post
quote:
I think there are 305 people that don't understand your question.

Yes...please elaborate yours Issue...
If you already have pagenation functiocnality then
you can always capture which page your navigating on...Keep that pagenumber in a variable.

Simple syntax below
-SET &SORT = IF &PAGENUM EQ 20 OR 12 THEN 'HIGHEST' ELSE '';
TABLE FILE your table
BY &SORT sort field
END
 


Thanks,
Saikumar.


WebFOCUS 8103 Appstudio, Dev Studio MRE
Client Windows 7, Serveron Unix.
Excel, PDF, HTML,AHTML
 
Posts: 38 | Registered: January 24, 2008Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I think what Swati means is that he/she is using on-demand-paging.
And then when going to page 3 it would be nice to be able to sort the records in ascending or descending order on that page only and thus keep the contents of every page the same only sorted differently.
There is no standard thing in the ODP to get that done.
There is a possibility to code it yourself, although it is just an idea, I haven't tested it.
You could count your records and based upon that create a page number for every record. Set the number of lines per page to something hihgher than what you actually want per page. Then sort on the page number (low to high) with page-break and then apply the normal sorts you already have in place. Whether you do these low-to-high or high-to-low doesn't matter, the records will stay on the same page because of the higher level sort on page number.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] pagination & sorting

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.