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     [SOLVED] problem with subtotal dynamic format change

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] problem with subtotal dynamic format change
 Login/Join
 
Gold member
posted
Hi,

I am facing problem with subtotal format. I am able to change the format of the column data dynamically but subtotal format i am not able to change. can anyone tell me a way to change the format of subtotal as well?

TABLE FILE CAR
SELECT * FROM CAR
END

DEFINE FILE CAR
DISP_FORMAT/A10 = IF COUNTRY EQ 'FRANCE' OR COUNTRY EQ 'ITALY' THEN 'D30C' ELSE 'D30.2CM';
END

TABLE FILE CAR
SUM RCOST/DISP_FORMAT
BY COUNTRY BY CAR
ON COUNTRY SUBFOOT
"MY OWN TEXT COST IS END

Thanks in advance

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


Web FOCUS 7.7.03
PDF
 
Posts: 69 | Registered: May 24, 2013Report This Post
Expert
posted Hide Post
How would the SUBTOTAL know which of the two formats to use?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Yes and how to display in correct format?

I think my code was missing. please refer the below code.

when i use SUBTOTAL then it is working for me but i wanted to use SUBFOOT only because of below points.
1.total label and total amounts are not coming in one line
2.I wanted to give red color to the values when it is negative.

Is there any way to give red color to subtotal if we use SUBTOTAL?


 TABLE FILE CAR
SELECT * FROM CAR
END
 
DEFINE FILE CAR
DISP_FORMAT/A10 = IF COUNTRY EQ 'FRANCE' OR COUNTRY EQ 'ITALY' THEN 'D30C' ELSE 'D30.2CM';
END
 
TABLE FILE CAR
SUM RCOST/DISP_FORMAT
BY COUNTRY BY CAR
ON COUNTRY SUBFOOT 
"MY OWN TEXT COST IS <ST.RCOST "
END
 


Web FOCUS 7.7.03
PDF
 
Posts: 69 | Registered: May 24, 2013Report This Post
Platinum Member
posted Hide Post
SET PAGE = NOLEAD
DEFINE FILE CAR
DISP_FORMAT/A10 = IF COUNTRY EQ 'FRANCE' OR COUNTRY EQ 'ITALY' THEN 'D30C' ELSE 'D30.2CM';
RCOST1/D15C =     IF COUNTRY EQ 'FRANCE' OR COUNTRY EQ 'ITALY' THEN RCOST ELSE 0;
RCOST2/D15.2CM =  IF COUNTRY NE 'FRANCE' OR COUNTRY EQ 'ITALY' THEN RCOST ELSE 0;
END
TABLE FILE CAR
SUM
	RCOST/DISP_FORMAT
BY  COUNTRY
BY  CAR
ON COUNTRY SUBFOOT
"MY OWN TEXT COST IS: <+0> <ST.RCOST1 "
WHEN COUNTRY EQ 'FRANCE' OR 'ITALY'

ON COUNTRY SUBFOOT
"MY OWN TEXT COST IS: <+0> <ST.RCOST2 "
WHEN COUNTRY NE 'FRANCE' OR 'ITALY'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
-*TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, WRAP=OFF, SIZE=9, FONT=ARIAL,$
TYPE=SUBFOOT, LINE=1, BACKCOLOR=SILVER, ITEM=1, COLSPAN=2,  $
TYPE=SUBFOOT, LINE=1, BACKCOLOR=RED, ITEM=3, COLSPAN=3, WHEN=RCOST GT 50000,  $
ENDSTYLE
END 
 

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


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Expert
posted Hide Post
Very Interesting Smiler
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Brilliant..

Thank you for code snippet.

Its working.


Web FOCUS 7.7.03
PDF
 
Posts: 69 | Registered: May 24, 2013Report 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     [SOLVED] problem with subtotal dynamic format change

Copyright © 1996-2020 Information Builders