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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dynamic Column sort
 Login/Join
 
Guru
posted
Can anyone help me with column-sorting on the fly where the user can click on a hyperlink on any column on the report(html) to re-generate the same report based on the field they click??

Appreciate ur help

Thanks
PK
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Platinum Member
posted Hide Post
If you have subscribed to the OLAP option of WebFocus , then the absolute easiest way to sort any column of a displayed report is to just add the line ...
-OLAP ON
as the first non-comment line of the Focexec
 
Posts: 226 | Registered: June 08, 2003Report This Post
<Grzegorz>
posted
You can also use the "self-drilldown" technique:

-* sort.fex file:
-* Sort order: HIGHEST or LOWEST:
-DEFAULTS &SORTORD='FIRST';
-* Previous sort column:
-DEFAULTS &PREVSRT='FIRST';
-* The SORTCOL column is used for sorting:
-DEFAULTS &SORTCOL='COUNTRY';
-* Set up the sort order appropriately:
-SET &SORTORD= IF &PREVSRT NE &SORTCOL THEN 'LOWEST' ELSE
- IF &SORTORD EQ 'LOWEST' THEN 'HIGHEST' ELSE 'LOWEST';
-*
TABLE FILE CAR
SUM SALES
BY &SORTORD TOTAL &SORTCOL NOPRINT
BY COUNTRY
ON TABLE SET STYLE *
TYPE=TITLE, COLUMN=P1, FOCEXEC=SORTS ( \
PREVSRT='&SORTCOL' \
SORTCOL='COUNTRY' \
SORTORD='&SORTORD'), $

TYPE=TITLE, COLUMN=P2, FOCEXEC=SORTS ( \
PREVSRT='&SORTCOL' \
SORTCOL='SALES' \
SORTORD='&SORTORD'), $

ENDSTYLE
END

It is not so effortless like OLAP (especially in the real-life cases), but is more flexible and completely customizable.
 
Report This Post
Expert
posted Hide Post
I agree with Gregorz.
I use this technique, and along with it, i put a mouseover on the column title

SUM DOLLARS AS
'[span title="click to sort by">Dollars[/span>'

and then the user knows what to do.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
Thank you guys for all ur suggestions! I got it working now.

Appreciate it

PK
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders