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] Using a Fieldname as a Column Title

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Using a Fieldname as a Column Title
 Login/Join
 
Silver Member
posted
This is probably answered somewhere but I cant manage to find it.

I want to use a fieldname in the column title for a column.
My Code looks like this:
  
TABLE FILE BLAHBLAH
PRINT
	REVISION AS 'Revision #' OVER
	REVISION_DETAILS AS 'Details'
BY REVISION_DATE NOPRINT


I have another field called REVISION_NUMBER that I would like to add to the REVISION column title so I would have 'Revision #REVISION_NUMBER'

Thanks

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


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report This Post
Expert
posted Hide Post
The simple solution is to turn the titles off, and add the titles to the heading, then you can add data to them.

DEFINE FILE CAR
 CarHead/A20 = 'Car ' | COUNTRY ;
END
TABLE FILE CAR
HEADING
"Heading"
" "
"<CarHead<+0>Model"
PRINT
CAR AS ''
MODEL AS ''
BY COUNTRY NOPRINT PAGE-BREAK
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY, $
END


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
Silver Member
posted Hide Post
Thanks Waz. Unfortunately, I forgot part of the code. The First Field has an OVER in it.


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report This Post
Expert
posted Hide Post
Oh dear,



Can you repro the basics of the report in one of the sample files ?


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
Virtuoso
posted Hide Post
Maybe something like this?
DEFINE FILE CAR
ASEATS/A5 = FTOA(SEATS,'(F5)',ASEATS);
NAUGHT/A5=' ';
END

TABLE FILE CAR
PRINT ASEATS AS 'Revision' CAR     AS ''
 OVER NAUGHT AS 'Country'  COUNTRY AS ''
 OVER NAUGHT AS 'Model'    MODEL   AS ''

ON    TABLE SET PAGE NOLEAD
ON    TABLE NOTOTAL
ON    TABLE SET LINES 9999
ON    TABLE PCHOLD FORMAT HTML
ON    TABLE SET STYLE *
TYPE=REPORT,
     SIZE= 9,
     GRID=OFF,
     FONT='verdana',
     COLOR=RGB(0 47 47),
     SQUEEZE=ON,
$
TYPE=DATA,
     BACKCOLOR=( 'WHITE' RGB(239 236 202) ),
$
TYPE=TITLE,
     STYLE=BOLD,
     COLOR=RGB(239 236 202),
     BACKCOLOR=RGB(4 99 128),
$
TYPE=DATA, COLUMN=ASEATS,
     STYLE=BOLD,
     COLOR=RGB(239 236 202),
     BACKCOLOR=RGB(4 99 128),
$
TYPE=DATA, COLUMN=N3,
     STYLE=BOLD,
     COLOR=RGB(239 236 202),
     BACKCOLOR=RGB(4 99 128),
$
TYPE=DATA, COLUMN=N5,
     STYLE=BOLD,
     COLOR=RGB(239 236 202),
     BACKCOLOR=RGB(4 99 128),
$
TYPE=HEADING,
     SIZE=10,
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=LIGHT,
     BORDER-TOP-COLOR=RGB(167 163 126),
     BORDER-BOTTOM-COLOR=RGB(167 163 126),
     SIZE=10,
     STYLE=BOLD,
$
TYPE=ACROSSVALUE,
     BACKCOLOR=RGB(230 226 175),
     STYLE=BOLD,
$
TYPE=ACROSSTITLE,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=HEAVY,
     BORDER-TOP-COLOR=RGB(167 163 126),
     BORDER-BOTTOM-COLOR=RGB(167 163 126),
     SIZE=9,
     STYLE=-UNDERLINE+BOLD,
$
ENDSTYLE
END
It's the closest as I could get without going to too extreme measures.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Silver Member
posted Hide Post
Thanks GamP, This looks like it will do the trick for what I am trying to do.


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report 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] Using a Fieldname as a Column Title

Copyright © 1996-2020 Information Builders