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     Sort by Across Column value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Sort by Across Column value
 Login/Join
 
Platinum Member
posted
Is the a way to sort on a selected column in an ACROSS array? I have a report that outputs 4 ACROSS sets of 3 columns each. I would like to be able to select any of those columns to sort on? I have tried using a "BY TOTAL HIGHEST or LOWEST but that totals up each corresponding column in the 4 sets not returning what I would like. The only way I've found to do it is to output the final answer set to a HOLD file and PRINTing what amounts to a flat file but losing the ACROSS functionality in the process.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Member
posted Hide Post
Create a defined numeric field based off the across that you want to sort by and make it an across as well, then sort by the defined field you created, then make it invisible on the report. Kind of sneaky, but see if that works.


wFDS: 7.7.03, OS: Windows, Output: Mostly Excel
 
Posts: 22 | Registered: November 15, 2012Report This Post
Platinum Member
posted Hide Post
Thanks. That did exactly what I needed it to do.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Virtuoso
posted Hide Post
Alex,
Could you post the code for this?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
For drill down see below. If used, OLAP re-sort on columns is part of it's functionality.
  
-DEFAULT &SORTDIR='LOWEST', &FLAG1=1;
-SET &SORTDIR = IF &FLAG1 EQ 1 THEN LOWEST ELSE HIGHEST;
-SET &FLAG1 = IF &FLAG1 EQ 1 THEN 2 ELSE 1;
TABLE FILE CAR
PRINT 
     CAR.CARREC.MODEL
     CAR.BODY.DEALER_COST
     CAR.BODY.RETAIL_COST
BY  &SORTDIR CAR.ORIGIN.COUNTRY
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE SET BYDISPLAY ON 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=TITLE,
     COLUMN=N1,
     FOCEXEC=column_sort( \
     FLAG1=&FLAG1.QUOTEDSTRING \
     ),
ENDSTYLE
END


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report 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     Sort by Across Column value

Copyright © 1996-2020 Information Builders