Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2009Report 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, 2005Report 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, 2008Report 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 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders