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.
Here is what I'm trying to do, I would like to display a light top border and a heavy bottom border. In html output only the top border appears, in exl2k none of the borders display and in pdf both borders appear but there is a space before the bottom border.
Also I would like to display a subtotal line that does not repeat the by field's information. This is why I compute a blank field.
Does anyone know a solution to either of the problems? I'm running WF 5.2.5.
-* Create Hold file. TABLE FILE CAR SUM RETAIL_COST DEALER_COST SALES COMPUTE SPACE/A5 = ''; BY COUNTRY BY CAR BY MODEL BY BODYTYPE WHERE CAR IN ('BMW','ALFA ROMEO','JAGUAR','AUDI','DATSUN') ON TABLE HOLD AS H0 FORMAT ALPHA END -RUN
-* Dispay report. TABLE FILE H0 HEADING " " "Vehicle Cost" " " &HD_PAGE_NUM " " FOOTING " " &FD_RAN_DATE PRINT RETAIL_COST AS 'Retail Cost' DEALER_COST AS 'Dealer Cost' BY COUNTRY NOPRINT BY CAR NOPRINT BY SPACE NOPRINT BY MODEL AS 'Model' BY BODYTYPE AS 'Bodytype' BY SALES AS 'Sales' ON COUNTRY PAGE-BREAK ON SPACE SUBTOTAL RETAIL_COST DEALER_COST AS 'Total: ' ON SPACE SUBHEAD " " "Country: "Car: " " ON SPACE SUBFOOT " " -*ON TABLE SET ONLINE-FMT PDF -*ON TABLE SET ONLINE-FMT EXL2K ON TABLE NOTOTAL ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN,LEFTMARGIN=0.000000,RIGHTMARGIN=0.000000, TOPMARGIN=0.000000,BOTTOMMARGIN=0.000000,$ DEFMACRO=TOT,BORDER-TOP=LIGHT,BORDER-BOTTOM=HEAVY,BACKCOLOR=&RGB_GREY,STYLE=BOLD,$ PAGESIZE='LETTER',ORIENTATION=LANDSCAPE,$ TYPE=REPORT,GRID=OFF,SIZE=8,SQUEEZE=ON,FONT='ARIAL',$ TYPE=HEADING,LINE=1,COLSPAN=5,STYLE=BOLD,JUSTIFY=CENTER,$ TYPE=HEADING,LINE=2,COLSPAN=5,STYLE=BOLD,JUSTIFY=CENTER,$ TYPE=SUBHEAD,ITEM=1,STYLE=BOLD,$ TYPE=SUBTOTAL,COLUMN=RETAIL_COST,MACRO=TOT,$ TYPE=SUBTOTAL,COLUMN=DEALER_COST,MACRO=TOT,$ ENDSTYLE END -RUNThis message has been edited. Last edited by: <Mabel>,
Posts: 406 | Location: Canada | Registered: May 31, 2004
The behaviour for html and pdf should be the same, but I have found that Excel always loses borders... The WebFOCUS implementation of Excel does not seem to respect the border features at all.
The problem that you are having with losing the bottom border seems to be a bug (I am running 5.3.2 and it is still losing the bottom border).
You can "fix" the symptom if you make the whole of the subtotal line have the bottom-border.
i.e. Remove the COLUMN=DEALER_COST as in:
TYPE=SUBTOTAL,MACRO=TOT,$ Regarding the blank column... You would not need to do a hold file if you changed SPACE to a DEFINE instead of a COMPUTE...
i.e.
DEFINE FILE CAR SPACE/A1 WITH CAR = ' '; END
TABLE FILE CAR WHERE CAR IN ('BMW','ALFA ROMEO','JAGUAR','AUDI','DATSUN')
-*...then all the lines after TABLE FILE H0 ... END This message has been edited. Last edited by: <Mabel>,