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     Sorting the report output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Sorting the report output
 Login/Join
 
Silver Member
posted
Hi,
Is it possible to sort report by columns in the report output that is suppose in my car report output if i click on model then the whole report should be sorted by that field and similarly if i click on the field country it should be sorted by country.thanks for ur suggestions
Maddy
 
Posts: 31 | Registered: April 07, 2005Report This Post
Gold member
posted Hide Post
Maddy:<br /><br />You can turn the OLAP option on for your report and each column will have active sort arrows at the top of each column, or you can use this tip posted previously:<br /><br /> https://forums.informationbuilders.com/eve/forums/a/...791077331#1791077331 <br /><br />Hope this helps,<br /><br />Tim

This message has been edited. Last edited by: <Mabel>,
 
Posts: 57 | Registered: February 24, 2004Report This Post
Master
posted Hide Post
Yes, you can sort the report by columns.

-* File test.fex
-DEFAULT &SORTFLD='COUNTRY';
-DEFAULT &DIRECTION='LOWEST';

-SET &DIRECTION = IF &DIRECTION EQ 'LOWEST' THEN 'HIGHEST' ELSE 'LOWEST';

TABLE FILE CAR
PRINT COUNTRY MODEL BODYTYPE DEALER_COST
BY &DIRECTION &SORTFLD NOPRINT
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=TITLE, COLUMN=P1, FOCEXEC=TEST.FEX(SORTFLD='COUNTRY' \
DIRECTION='&DIRECTION'),$
TYPE=TITLE,COLUMN=P2,FOCEXEC=TEST.FEX(SORTFLD='MODEL' \
DIRECTION='&DIRECTION'),$
ENDSTYLE
END
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Silver Member
posted Hide Post
HI KAMESH,
thanks for ur reply i tried ur code but when i am clicking on the column instead of displaying the report sorted by that column its displaying code of the report. do i need to make any specific changes to the code u have sent before running it and any further suggestions are very helpful.
thanks maddy
 
Posts: 31 | Registered: April 07, 2005Report This Post
Expert
posted Hide Post
Make sure you save the code Kamesh posted as a fex called "test". The program works correctly for me.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
save the code as test.fex
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Silver Member
posted Hide Post
HI KAmesh/Francis,
i saved the code as test.fexand then ran the code its displaying the output but when i click on country instaed of sorting the report on country and displaying the report its displaying the code of the report.thanks for ur time and patience
maddy
 
Posts: 31 | Registered: April 07, 2005Report This Post
Silver Member
posted Hide Post
THANKS KAMESH ITS WORKING NOW SORRY FOR THE TROUBLE AND TAHNKS FOR UR SUGGESTION
 
Posts: 31 | Registered: April 07, 2005Report This Post
Gold member
posted Hide Post
Maddy:

I am getting the same results as you were, where the code is displayed on the screen when the column title is clicked.

What change to the code did you make to correct this?

Thanks,
Tim
 
Posts: 57 | Registered: February 24, 2004Report 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     Sorting the report output

Copyright © 1996-2020 Information Builders