Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] - Title Case in Column Headers

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] - Title Case in Column Headers
 Login/Join
 
Platinum Member
posted
Is there a way from the "ON TABLE SET STYLE *" section to force the column headers in a report to be appear in "Title Case" instead of "ALL CAPS"?

If so, can this be set for specific columns only?

This message has been edited. Last edited by: ColdWhiteMilk,


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
You can do this with AS

TABLE FILE CAR
PRINT CAR AS 'Car'
END
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Sorry, I should have posted my code so that you could see why I need to do this in the stylesheet. I need to run the first part this way to get all of the column headers on the same line (the ACROSS column headers appear one line up from the rest). So when I do the PRINT * for the second part, it gives me all of the BY fields, and all of the ACROSS fields, but the ACROSS fields are just the field names from the hold file, even if I give them an alias.

TABLE FILE LIFECYCLEA
SUM
ROWTOT AS ''

BY FIELDA AS 'FIELDA'
BY FIELDB AS 'FIELDB'
BY FIELDC AS 'FIELDC'
BY FIELDD AS 'FIELDD'

ACROSS REJECTER
ACROSS-TOTAL AS 'TOTAL'

ON TABLE SET ASNAMES ON
ON TABLE HOLD
END

TABLE FILE HOLD
PRINT *

ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Guru
posted Hide Post
How about redefining the ACROSS field and using LCWORD?

  
DEFINE FILE CAR
COUNTRY_MIX/A100 = LCWORD(10, COUNTRY, COUNTRY_MIX);
END

TABLE FILE CAR
SUM  DEALER_COST AS ''

BY CAR   AS 'FIELDA'
BY MODEL AS 'FIELDB'
ACROSS COUNTRY_MIX
ACROSS-TOTAL AS 'TOTAL'
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END

TABLE FILE HOLD
PRINT *
-*ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Platinum Member
posted Hide Post
It is the "BY" fields that I can't get their column header to change to Title Case.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Guru
posted Hide Post
How about redefining the BY fields?
  
DEFINE FILE CAR
COUNTRY_MIX/A100 = LCWORD(10, COUNTRY, COUNTRY_MIX);
Car/A16 = CAR;
Model/A24 = MODEL;
END

TABLE FILE CAR
SUM  DEALER_COST AS ''

BY Car
BY Model
ACROSS COUNTRY_MIX
ACROSS-TOTAL AS 'Total'
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END

TABLE FILE HOLD
PRINT *
-*ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT

Or you could add a TITLE to the fields in the master?
  
FIELD=CAR, ALIAS=CAR, FORMAT=A16, TITLE='Car',$  


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Guru
posted Hide Post
The ASNAMES are staying all caps. Right?
Here is the syntax from the help file.
SET ASNAMES = [ON|OFF|MIXED|FOCUS]

So it looks like you need to do a
ON TABLE SET ASNAMES MIXED


I'm on 7.7.02 so I don't if this is avaialble in your version of Dev Studio.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Guru
posted Hide Post
Here is the sample
  
TABLE FILE CAR
SUM  DEALER_COST AS ''

BY CAR   AS 'Field1'
BY MODEL AS 'Field2'
ACROSS COUNTRY
ACROSS-TOTAL AS 'Total'
ON TABLE SET ASNAMES MIXED
ON TABLE HOLD
END

TABLE FILE HOLD
PRINT *
-*ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Expert
posted Hide Post
quote:
ON TABLE SET ASNAMES MIXED



You learn something new everyday.

Good One


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Perfect! That is exactly what I needed.

Thank you.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
Oh you do learn something new everyday.

Thanks
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] - Title Case in Column Headers

Copyright © 1996-2020 Information Builders