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     [CLOSED] COMPUTE after BY?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] COMPUTE after BY?
 Login/Join
 
Silver Member
posted
Hi All,
Hopefully I can explain what I am trying well.

I have a report that is doing Totals and allows the user to sort the report manually. I am also doing alternate row styling using css. My problem is that when a user changes the sort, some of the BY rows are showing up more than once. When I change the BY to use TOTAL my alternating lines are breaking.

My actual data source and columns are different, but I think this represents what I am trying to do.
  
TABLE FILE SALES
SUM
	SALES
	REVENUE
	PROFIT
	COMPUTE PCT_SALES/D3% = (SALES/TOTAL_SALES)*100;
	COMPUTE BAND1/I1= IF LAST BAND1 EQ 1 THEN 2 ELSE 1; NOPRINT
BY &ORDER TOTAL &SORT NOPRINT
BY REGION_NAME	
ON TABLE RECOMPUTE SALES REVENUE PROFIT PCT_SALES
ON TABLE HOLD AS ONSST FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON

TYPE=TITLE, COLUMN=N3, FOCEXEC=app/on_subjstat_container( SORT='SALES' ), CLASS=reportTitle, $
TYPE=TITLE, COLUMN=N3, FOCEXEC=app/on_subjstat_container( SORT='REVENUE' ), CLASS=reportTitle, $
TYPE=DATA, CLASS=reportDataEven, WHEN=BAND2 NE 1, $
TYPE=DATA, CLASS=reportDataOdd, $


Any help would be great.

Cody

This message has been edited. Last edited by: Cody,


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report This Post
<FreSte>
posted
Cody,

In the table request you are computing BAND1 and in the stylesheet you are using field BAND2 ?

... but maybe you could use the following code in the stylesheet for alternating backcolors

  
TYPE=DATA     ,BACKCOLOR=(RGB(255 255 255) RGB(245 245 245)),$


-Fred-
 
Report This Post
Silver Member
posted Hide Post
Hi Fred,

The BAND1/BAND2 is just a type, they are both the same in my code. I had to resort to the code you have below, but it blew up a lot of my css styling, so I had to recreate all that as well


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report 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     [CLOSED] COMPUTE after BY?

Copyright © 1996-2020 Information Builders