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.
How do I code this so that only the Grand Total Line prints? I don't want to see the headings or data, only Grand Total line.
TABLE FILE CAR
SUM DCOST RCOST
BY COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'GRAND TOTAL'
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=SUBTOTAL,
BY=3,
COLOR='RED',
JUSTIFY=RIGHT,
$
ENDSTYLE
END
I have a compound report Report 1 is Total of LOB1 Report 2 is Total of LOB2 Report 3 I need to be the one line Grand total which is the total of LOB1 and LOB2
This seems like is should be easy, maybe I am just going crazy... Thanks JVThis message has been edited. Last edited by: FP Mod Chuck,
TABLE FILE CAR
SUM DCOST AS '' RCOST AS ''
-*BY COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'GRAND TOTAL'
ON TABLE PCHOLD FORMAT EXL07
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
-* INCLUDE = endeflt,$
TYPE=SUBTOTAL,
-* BY=3,
COLOR='RED',
JUSTIFY=RIGHT,
$
ENDSTYLE
END
-EXIT
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Don't really know how you would align the Grand Totals with reports 1/2, but, here's a shot at it...
DEFINE FILE CAR
XDUMMY/A10 = '';
DUMMY/A12 = 'GRAND TOTAL';
END
TABLE FILE CAR
SUM
XDUMMY AS ''
XDUMMY AS ''
DUMMY AS ''
DCOST AS ''
RCOST AS ''
XDUMMY AS ''
XDUMMY AS ''
XDUMMY AS ''
BY DUMMY NOPRINT
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=REPORT,
SQUEEZE=1,
STYLE=BOLD,
COLOR='RED',
JUSTIFY=RIGHT,
$
ENDSTYLE
END
-EXIT
Ok, again thanks for the help. This was pretty easy, just needed a push in the right direction. Here is what I came up with. All your code worked by the way, I just needed to tweak it to get what they wanted.
DEFINE FILE CAR
CTRY/A15 WITH COUNTRY = '';
END
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
CAR MODEL NOPRINT
BODYTYPE NOPRINT
SEATS NOPRINT
DEALER_COST
RETAIL_COST
BY COUNTRY NOPRINT SUBTOTAL AS ''
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
BY SEATS
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SUBTOTAL DEALER_COST RETAIL_COST AS 'CONTRACT TOTAL: ENGLAND'
ON TABLE PCHOLD FORMAT EXL07 OPEN
ON TABLE SET STYLE *
INCLUDE = endeflt,
TITLETEXT='ENGLAN',
$
TYPE=DATA
FONT='Verdana',
JUSTIFY=CENTER,
backcolor=rgb(66 70 73),
color=rgb(255 255 255),
$
TYPE=SUBTOTAL,
BY=1,
JUSTIFY=RIGHT,
BORDER=OFF,
$
ENDSTYLE
END
DEFINE FILE CAR
CTRY/A15 WITH COUNTRY = '';
END
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
CAR MODEL NOPRINT
BODYTYPE NOPRINT
SEATS NOPRINT
DEALER_COST
RETAIL_COST
BY COUNTRY NOPRINT SUBTOTAL AS ''
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
BY SEATS
WHERE COUNTRY EQ 'W GERMANY';
ON TABLE SUBTOTAL DEALER_COST RETAIL_COST AS 'CONTRACT TOTAL: W GERMANY'
ON TABLE PCHOLD FORMAT EXL07 NOBREAK
ON TABLE SET STYLE *
INCLUDE = endeflt,
TITLETEXT='W GERMANY',
$
TYPE=DATA
FONT='Verdana',
JUSTIFY=CENTER,
backcolor=rgb(66 70 73),
color=rgb(255 255 255),
$
TYPE=SUBTOTAL,
BY=1,
JUSTIFY=RIGHT,
BORDER=OFF,
$
ENDSTYLE
END
DEFINE FILE CAR
DUMMY/A12='GRAND TOTAL';
DUMMY1/A1='';
END
TABLE FILE CAR
SUM
DUMMY1 AS ''
DUMMY1 AS ''
DUMMY1 AS ''
DUMMY1 AS ''
DUMMY1 AS ''
DEALER_COST AS ''
RETAIL_COST AS ''
BY DUMMY AS ''
WHERE COUNTRY EQ 'W GERMANY' OR 'ENGLAND';
ON TABLE PCHOLD FORMAT EXL07 CLOSE
ON TABLE SET STYLE *
INCLUDE = endeflt,
-* TITLETEXT='&YR',
$
TYPE=DATA
FONT='Verdana',
JUSTIFY=CENTER,
BACKCOLOR=RGB(66 70 73),
COLOR=RGB(255 255 255),
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BY=1,
JUSTIFY=RIGHT,
BORDER=OFF,
$
ENDSTYLE
END