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.
I need to align the subtotals displayed in subfoot of the report. I am doing this because I also need to display count of the counter in the same row. My code is as given below: -* File cartotal.fex -SET ECHO=ALL; -RUN -*TO DISPLAY THE SQLS GENERATED SET MSG=ON SET EMPTYREPORT = ON SET ASNAMES = ON SET AUTOINDEX = ON SET CARTESIAN = OFF SET CENT-ZERO = OFF SET DEFINES = COMPILED SET LINES=999999 SET PRINTPLUS = ON -*SET ORIENTATION=LANDSCAPE SET NODATA=0 -SET MISSING = OFF; -*SET OFFLINE-FMT = STYLED SET PAGE-NUM = NOLEAD -******************************** DEFINE FILE CAR SP/A1 = HEXBYT(160, 'A1'); SP02/A2 = SP|SP; SP05/A05 = SP|SP|SP|SP|SP; SP10/A10 = SP05|SP05; SP15/A15 = SP10|SP05; SP20/A20 = SP10|SP10; SP35/A35 = SP10|SP10|SP10|SP05; CNT/I6 = 1; PAIDCOST/P17.2CM = RETAIL_COST ; END TABLE FILE CAR PRINT CNT NOPRINT COUNTRY AS 'Country' MODEL AS 'Model' PAIDCOST AS 'Retail Cost' BY COUNTRY NOPRINT BY HIGHEST PAIDCOST NOPRINT ON COUNTRY SUBFOOT "Totals: .lt.SP35 .lt.ST.CNT .lt.SP35 .lt.ST.PAIDCOST " HEADING "Account .lt.COUNTRY " ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF, $ ENDSTYLE END -RUN
-* ... ON COUNTRY SUBFOOT "Totals:-* ... ON TABLE SET STYLE * -* ... TYPE=REPORT, GRID=ON,$ TYPE=SUBFOOT, HEADALIGN=BODY,$ -* ... ENDSTYLE In order to test the HEADALIGN options, it is more convenient to use GRID=ON in stylesheets - after the testing is finished you can switch to GRID=OFF.
Hope this helps GrzegorzThis message has been edited. Last edited by: <Mabel>,
Thanks for the help BUT I still do not get what I want...I am posting the snippet and will explain what I am getting: TABLE FILE PD_INFO PRINT CNT NOPRINT WHERE BNKACCTKY = &BNKACCTKY IF RECORDLIMIT EQ 1 END -IF &LINES EQ 0 THEN GOTO ERRCREDIT;
TABLE FILE PD_INFO PRINT CNT NOPRINT PAIDDATE AS 'Date Paid' CUSTREF AS 'Check Number' PAIDAMOUNT AS 'Check Amount' FITRNREF AS 'Sequence Number' BNKACCTKY NOPRINT BY BNKACCTKY NOPRINT BY HIGHEST AMOUNT NOPRINT WHERE BNKACCTKY = &BNKACCTKY ON BNKACCTKY SUBFOOT "Totals: .lt.ST.CNT .lt.PAIDAMOUNT " HEADING "Account .lt.BNKACCTKY " ON TABLE NOTOTAL -********REPORT FORMAT******************* ON TABLE HOLD AS PYDYCBO2 FORMAT HTMTABLE -*ON TABLE PCHOLD FORMAT &FORMAT -***************************************** ON TABLE SET STYLE * TYPE=REPORT, GRID=ON, STYLE=NORMAL, FONT='&RFONT', SIZE=&RSIZE, BACKCOLOR=NONE,$ TYPE=SUBFOOT, HEADALIGN = BODY, SQUEEZE=ON, $ TYPE=SUBFOOT, LINE=1, CLASS=bborder, $ TYPE=SUBFOOT, LINE=1, ITEM=3, JUSTIFY=LEFT, CLASS=bborder, $ TYPE=HEADING, LINE=1, SIZE=9, STYLE=BOLD, BACKCOLOR=RGB(&STYLE2), $ TYPE=TITLE,STYLE=-UNDERLINE, $ TYPE=TITLE, COLUMN=N6, JUSTIFY=LEFT, FOCEXEC=pdchks(\ SORTFLD='CUSTREF' \ SORTDIR='&SORTDIR' \ ), $ TYPE=TITLE, COLUMN=N7, JUSTIFY=RIGHT, FOCEXEC=pdchks(\ SORTFLD='PAIDAMOUNT' \ SORTDIR='&SORTDIR' \ ), $ ENDSTYLE END -RUN -GOTO HTMLFORM
In the following stmt Totals: .lt.ST.CNT .lt.PAIDAMOUNT
the paidamount is aligning with the last field sequence number.
DEFINE FILE CAR CNT/I6 = 1; PAIDCOST/P17.2CM = RETAIL_COST ; END TABLE FILE CAR PRINT CNT NOPRINT COUNTRY AS 'Country' MODEL AS 'Model' PAIDCOST AS 'Retail Cost' BY COUNTRY NOPRINT BY HIGHEST PAIDCOST NOPRINT BY CNT NOPRINT ON COUNTRY SUBFOOT "Totals: .lt.ST.CNT .lt.ST.PAIDCOST " ON TABLE SET STYLE * TYPE=REPORT, GRID=ON, STYLE=NORMAL, FONT=ARIAL, SIZE=8, BACKCOLOR=NONE,$ TYPE=SUBFOOT, HEADALIGN = BODY, SQUEEZE=ON, $ TYPE=SUBFOOT, LINE=1, CLASS=bborder, $ TYPE=SUBFOOT, LINE=1, ITEM=3, JUSTIFY=LEFT, $ TYPE=HEADING, LINE=1, SIZE=9, STYLE=BOLD, BACKCOLOR=RGB(192 192 192), $ TYPE=TITLE,STYLE=-UNDERLINE, $ ENDSTYLE END -RUN
This is great...Figured it out. If I remove the space between the two .lt.st.cnt and .lt.st.paidamount it works. Was this by design or was this an undocumented feature?
This is by design. The space in between 2 fields in a SUBFOOT or any other HEADING or FOOTING is interpreted as a separate entity and therefore focus creates a column (cell) for that blank space. As you noticed, when you remove the spaces between field references, everything works as expected.
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003