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.
Then the body contains sales item detail - like quantity, item code, description etc. The header data labels and data should be aligned in columns. Now I have read the forum posts suggesting various techniques like - set columns = xx, AlignBody etc. But this does not give me the results I am looking for. Isn't there a way to write the data out to an HTML table and then merge that with the rest of the row data in the body of the report? Sure I could probably do this in PDF output but I need it in HTML and I honestly cannot believe that a decent looking, aligned header cannot be created.
I have tried many different options and am completely stumped.
HEADALIGN=INTERNAL creates a separate HTML table. Columns are generated based on the number of items (text and fields) in the heading; each item is placed in a separate cell. These columns do not correspond to those in the HTML table for the body of the report.
My example:
TABLE FILE CAR
PRINT
SALES AS 'Sales'
WHEELBASE AS 'Wheelbase'
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL NOPRINT
BY BODYTYPE NOPRINT
ON BODYTYPE PAGE-BREAK
HEADING
"Country: <COUNTRY Car: <CAR"
"Model: <MODEL Body Type: <BODYTYPE"
" "
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=8, $
TYPE=HEADING, HEADALIGN=INTERNAL, $
TYPE=HEADING, OBJECT=TEXT, STYLE=BOLD, $
TYPE=HEADING, OBJECT=FIELD, COLOR=NAVY, $
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Although I tried the various suggestions - none of them give me what I am looking for. The HEADALIGN=INTERNAL does seperate the data but the column widths match the with of the data table cells and so header data is wrapped - which is not what I want. I did futz around and use the POSITION=xx property in the stylesheet but this did not position the text absolutely, regardless of the documentation, so it trial and error for alignment.
At least I have something that looks decent now. But it sure seems to me that there should be a better way.