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.
Hi All, I am new to webfocus and using this forum first time. I am getting a problem in display of subtotal, when i am using 'sequence' command for ordering of my columns, the subtotal is displayed in two broken lines. what should i do to avoid this. My code looks like this-
Welcome to the focalpoint website and welcome to the Webfocus world.
Your problem is an old one and as you might understand there are some workarounds to this problem.
But first I would suggest you some starter tips.
1) Try to simplify the problem for others by building a similar report on one of the databases that comes with webfocus like CAR. If you do so we all can execute the fex on our own systems and see if we get the same result.
2) If you post examples please put them between the coding tags to make it better readable
Hi Frank, I have gone thru some of the earlier posts regarding subtotal in two lines, but i think my problem is a bit different. I am getting that two line subtotal only if i am using 'sequence' command for reordering the display of my columns, else if i am not using 'sequence' command, then am not getting that two line display, its working fine then.
acc. to car file my code will look like this:-
TABLE FILE CAR
PRINT
RETAIL_COST AS 'R COST'
DEALER_COST AS 'D COST'
SALES AS 'SALES'
BY BODYTYPE AS 'BODYTYPE' SUBTOTAL RETAIL_COST AS ''
ON TABLE SUBHEAD
"REPORT"
"Report Name :CAR Details"
"Report ID : OTM-LPR-O-006"
""
ON TABLE SET PAGE-NUM OFF
ON TABLE SET EMPTYREPORT ANSI
ON TABLE SET LINES 40
ON TABLE SET BYDISPLAY OFF
ON TABLE PCHOLD FORMAT 'HTML'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
ORIENTATION=PORTRAIT,
BORDER=LIGHT,
SQUEEZE=OFF,
$
TYPE=REPORT,
GRID=ON,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
STYLE=NORMAL,
TITLETEXT=CAR-TESTING REPORT,
BORDER=LIGHT,
$
TYPE=TITLE,
STYLE=BOLD,
GRID=ON,
JUSTIFY=LEFT,
BORDER=LIGHT,
$
TYPE=TABHEADING,
SIZE=10,
JUSTIFY=CENTER,
BORDER=ON,
$
TYPE=TABFOOTING,
SIZE=8,
STYLE=BOLD,
JUSTIFY=LEFT,
$
TYPE=HEADING,BORDER=OFF,
$
TYPE=FOOTING,BORDER=OFF,
$
TYPE=TABHEADING,
JUSTIFY=CENTER,
$
TYPE=TABHEADING, LINE=1,
STYLE=BOLD,
SIZE=12,
JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
SIZE=11,
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
STYLE=BOLD,
$
TYPE=REPORT, COLUMN=RETAIL_COST, SEQUENCE=2,
$
TYPE=REPORT, COLUMN=BODYTYPE, SEQUENCE=1,
$
TYPE=REPORT, COLUMN=SALES, SEQUENCE=4,
$
TYPE=REPORT, COLUMN=DEALER_COST, SEQUENCE=3,
$
ENDSTYLE
END
-EXIT
Only sequencing of the columns is creating problem. What should i do??
Thanks and Regards,
WF 7611 XFOCUS/FOCUS DB Win XP EXL2K/HTML
Posts: 37 | Location: India | Registered: September 25, 2008
General practice is to order your BY fields and your PRINT fields in the actual statements in the order in which you would like them to appear.
I would suggest the following:
1) Report this issue to Information Builders so they can address it.
2) Change your request to implement the suggestion above. Code your report so that the fields appear in the BYs/PRINT statements in the order you want them to appear on the report.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Mickey, u suggested me to put the columns in the PRINT statement in the order i want them to appear in the report.
But i want my sort(BY) field to appear at the third position as by default it appears as first field in the report. I tried this:-
TABLE FILE CAR
PRINT
RETAIL_COST AS 'RETAIL COST'
DEALER_COST AS 'DEALER COST'
BODYTYPE AS 'BODYTYPE'
SALES AS 'SALES'
BY BODYTYPE NOPRINT
ON BODYTYPE SUBTOTAL RETAIL_COST AS ''
here i want BODYTYPE to appear as third column. But here also i am getting subtotal in two lines, i checked in earlier posts also but didn't get the workaround for this(i don't want to sort by any other field so as to make the total length of visible sort fields greater than or equal to subtotal field value).
Is there any way to achieve this?
Thanks and Regards,
WF 7611 XFOCUS/FOCUS DB Win XP EXL2K/HTML
Posts: 37 | Location: India | Registered: September 25, 2008
You can use SUBFOOT to show e.g. subtotal values. You can also add other fields and free text in SUBFOOT.
Regards, Mika
TABLE FILE CAR
PRINT RETAIL_COST AS 'RETAIL COST'
DEALER_COST AS 'DEALER COST'
BODYTYPE AS 'BODYTYPE'
SALES AS 'SALES'
BY BODYTYPE NOPRINT
-* ON BODYTYPE SUBTOTAL RETAIL_COST AS ''
ON BODYTYPE SUBFOOT
"<ST.RETAIL_COST"
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, STYLE=BOLD, JUSTIFY=RIGHT, $
ENDSTYLE
END
WebFOCUS 7.6.x PMF 5.2.x
Posts: 58 | Location: Sydney, Australia | Registered: April 22, 2005