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.
SET COMPOUND=BYTOC TABLE FILE CAR PRINT SALES BY COUNTRY NOPRINT BY CAR ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET STYLE * type=report, style=bold, color=yellow, backcolor=black, $ type=data, backcolor=red, $ type=data, column=car, color=blue, backcolor=yellow, $ END
The above code returns the same colomn name (CAR,SALES) in eac tab of the excel report.
If i wantted to change the column header name like UK tab (UK CAR,UK Sales) US tab (US CAR,US Sales).
Is it possible...? If Yes please let me know the solution.
ThanksThis message has been edited. Last edited by: Kerry,
The BYTOC functionality creates the exact same report (layout) for each section/tab of the report. Meaning that you get the same column titles for every section of report. Even re-defining a column will not help you there.
About your only hope would be to create a compound excel document an re-run the report for each country, using an &variable in the AS 'columntitle' 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
You're right Darin, The DEFINE would only be the first step with regards to a DEFINE of the field containing the UK and US values after which the &variables would come in.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Dinesh, You can also discard TITLEs and use HEADING instead, with a DEFINE:
-* File Dinesh1.fex
DEFINE FILE CAR
CARHEAD/A20 =COUNTRY || ' CAR';
SALESHEAD/A20=COUNTRY || ' SALES';
END
SET COMPOUND=BYTOC
TABLE FILE CAR
PRINT SALES AS ''
BY COUNTRY NOPRINT
BY CAR AS ''
HEADING
"<CARHEAD<SALESHEAD"
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
type=report, style=bold, color=yellow, backcolor=black, $
type=data, backcolor=red, $
type=data, column=car, color=blue, backcolor=yellow, $
TYPE=HEADING, HEADALIGN=BODY, $
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Have not tested this, but one thing you may want to try is inserting your column headings into a subhead (where you can embed field values) and then adding AS '' to each displayed field. Also some variation of conditional subheadings may work.
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