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.
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, 2003
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.
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, 2003