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.
Not quite sure what you are looking for. Maybe you could give us an example? You can name a column title anything you want with the AS phrase.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Are you looking for COLSPAN option. This working only in HTML & EXL2k. Provide a example using car file to help you better. Also mention the output format.
TABLE FILE CAR
HEADING
" "
" <+0>Sales Details<+0> "
PRINT CAR AS 'Car'
MODEL AS 'Model'
BODYTYPE AS 'Body Type'
SEATS AS 'No of Seats'
DEALER_COST AS 'Dealer $'
RETAIL_COST AS 'Retail $'
SALES AS 'Sales'
MPG AS 'MPG'
ON TABLE SET STYLE *
TYPE=REPORT, HEADALIGN=BODY, $
TYPE=HEADING, LINE=2, ITEM=1, COLSPAN=4, $
TYPE=HEADING, LINE=2, ITEM=2, COLSPAN=3, $
TYPE=HEADING, LINE=2, ITEM=3, COLSPAN=1, $
TYPE=HEADING, LINE=1, COLSPAN=8, $
ENDSTYLE
END
This will depend on the output format. PDF does not like COLSPAN.
You could also use the WIDTH option.
TABLE FILE CAR
HEADING
" "
" <+0>|<+0>Sales Details<+0>|<+0> "
PRINT CAR AS 'Car'
MODEL AS 'Model'
BODYTYPE AS 'Body Type'
SEATS AS 'No of Seats'
DEALER_COST AS 'Dealer $'
RETAIL_COST AS 'Retail $'
SALES AS 'Sales'
MPG AS 'MPG'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=N1, WRAP=1, $
TYPE=REPORT, COLUMN=N2, WRAP=1, $
TYPE=REPORT, COLUMN=N3, WRAP=1, $
TYPE=REPORT, COLUMN=N4, WRAP=1, $
TYPE=REPORT, COLUMN=N5, WRAP=1, $
TYPE=REPORT, COLUMN=N6, WRAP=1, $
TYPE=REPORT, COLUMN=N7, WRAP=1, $
TYPE=REPORT, COLUMN=N8, WRAP=1, $
TYPE=HEADING, LINE=2, ITEM=1, WIDTH=4.44, $
TYPE=HEADING, LINE=2, ITEM=3, WIDTH=3.15,JUSTIFY=CENTER, $
ENDSTYLE
END
Hi Waz, We tried with the above code but it is not working. The requirement is same as you mentioned in the above mail. Please find below my code. TABLE FILE RPTTOP HEADING " " " <+0>Total Cost of Quality (USD)<+0> " PRINT SUPLLIER_CODE AS 'Supplier Code' SUPPLIER_NAME AS 'Supplier Name' UNCOLLECTED AS 'Total Uncollected CRA(USD)' DEL_COQ1 AS 'Delivery' LCH_COQ1 AS 'Launch' PRD_COQ1 AS 'Quality' WAR_COQ1 AS 'Warranty' REC_AMOUNT1 NOPRINT COMPUTE CRA_P/D10.1% = (COLL_AMT1/REC_AMOUNT1)*100; AS '% CRA Collected' COMPUTE COQ_1/D10.1 = PRD_COQ1+DEL_COQ1+WAR_COQ1+LCH_COQ1; NOPRINT COMPUTE COQ_P/D10.1% = (COLL_AMT1/COQ_1)*100; AS '% COQ Collected' ON TABLE SET PAGE-NUM NOLEAD &HTML_VW ON TABLE SET NODATA '0' ON TABLE SET EMPTYCELLS OFF ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, TOPMARGIN=1,
TABLE FILE TEST1
PRINT
COLUMN1
COLUMN2
COLUMN3
COLUMN4
COMPUTE combinedColumn1/A50 = COLUMN1||COLUMN2||COLUMN3
ON TABLE HOLD FORMAT TEST2
TABLE FILE TEST2
PRINT
*
HEADING
"<COLUMN1<combinedColumn1<COLUMN2 "
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
.......
.......
.......
i'm not sure this can run well,just a idea for you !
You will have to do this as a heading or subheading rather than a title and include the whole line. HEADING "This is your company heading" "The next line is your column titles" "<+0>Col 1<+0> Col2 Col3 Col4 <+0> Col 5"
In your stylesheet TYPE=HEADING, LINE=3 ITEM=2, COLSPAN=3, JUSTIFY=CENTER, $ If you have a problem identifying the item numbers, try making them different colors"
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007