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] need to get a common title for two columns.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] need to get a common title for two columns.
 Login/Join
 
Platinum Member
posted
Hi,
i am attaching a sample code...
TABLE FILE EMPLOYEE
PRINT
LAST_NAME
FIRST_NAME
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=ON,
FONT='ARIAL',
SIZE=9,
$
ENDSTYLE
END
-- this code produce the output with two columns with the last name and first name.
now i want to have a column title as full name above the last and first name columns,how can i accomplish this.....
like
FULLNAME
LASTNAME |FIRSTNAME

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


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Gold member
posted Hide Post
This is a very basic question. If you do not have a manual, please order one or go to the documentation on this site. You will get your answers much faster this way.

One way:
TABLE FILE EMPLOYEE
PRINT 
LAST_NAME AS 'FULLNAME'
FIRSTNAME AS ''
END
  


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report This Post
Virtuoso
posted Hide Post
This is a pretty basic question - do you have a FOCUS manual handy?

You can make the column name whatever you want with the AS statement (AS 'FULLNAME,LASTNAME|FIRSTNAME') - or you can just use the OVER command which stacks the column titles by default.

Define a new field FULLNAME concatenating the last and first names and then use the OVER


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, 2007Report This Post
Platinum Member
posted Hide Post
DARRIN,
i know about the concatenation,but i dont want to use it because my goal is to get a title above the last name and first name as full name.
if i create a field and use concatenation then i am getting this which is not i am looking for.,

DEFINE FILE EMPLOYEE
Fullname/A39=LAST_NAME| FIRST_NAME;
END
TABLE FILE EMPLOYEE
PRINT
Fullname OVER
LAST_NAME
FIRST_NAME
END


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Virtuoso
posted Hide Post
Like I mentioned - you can make the column title whatever you want it to be with the AS statement.


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, 2007Report This Post
Platinum Member
posted Hide Post
MICROFICH,
I USED YOUR solution,it works,but small modification needed.
i altered the code as:
TABLE FILE EMPLOYEE
PRINT
LAST_NAME AS 'FULLNAME,LASTNAME'
FIRST_NAME AS 'FIRSTNAME'
END

now i want the full name in the center,it is displaying in the left for the above code.


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Platinum Member
posted Hide Post
got it,thanks guys.


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Platinum Member
posted Hide Post
HI,
for this code can i get a line of seperation between the full name and last name as i run this code it appears that full name is a part of the block belonging to last name,so i want a line of seperation for the full name and last name.
TABLE FILE EMPLOYEE
PRINT
LAST_NAME AS 'FULLNAME,LASTNAME'
FIRST_NAME AS 'FIRSTNAME'
END


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Member
posted Hide Post
May be you can try with the following code in which fullname is kept under page heading....

TABLE FILE EMPLOYEE
PRINT
LAST_NAME
FIRST_NAME
HEADING
"FULLNAME"
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=ON,
FONT='ARIAL',
SIZE=9,
$
ENDSTYLE
END

Hope it helps..........


WebFocus 7.6.8
Data Migrator 7.6.8
Windows XP
HTML,Excel
 
Posts: 15 | Registered: February 26, 2009Report This Post
Platinum Member
posted Hide Post
shruthi,
you are including full name in the heading,thats fine.but,is there any way that i can omit the gap between the full name and column titles.i.e;i want the full name block exactly on top of the column titles.


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Member
posted Hide Post
Hi Swati,
try this.

TABLE FILE EMPLOYEE
PRINT
LAST_NAME AS 'FULLNAME,,LASTNAME'
FIRST_NAME AS ',,FIRSTNAME'
END

You can also put the FULLNAME in the heading and use colspan in the style sheet to have it go across the last name and first name columns.


WebFocus 7.1.3
Developer studio 7.6.4
Windows
Excel, HTML and PDF
 
Posts: 14 | Registered: March 31, 2009Report This Post
Expert
posted Hide Post
"colspan"... in PDF? It'll work in Excel and HTML... Not in PDF... You could use spot markers... You can move all your titles to the heading lines, and use spot markers or POSITION, so that it looks as though you eliminated the line between the HEADING and TITLEs. I've done this and it works... A bit of tedious development, but, it works...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
yep -- you're right wont work for pdf -- I thought it was html.


WebFocus 7.1.3
Developer studio 7.6.4
Windows
Excel, HTML and PDF
 
Posts: 14 | Registered: March 31, 2009Report This Post
Member
posted Hide Post
You can use borders to accomplish this.
TABLE FILE CAR
HEADING CENTER
"TEST"
" "
"Country <+0>Model"
PRINT
COUNTRY
CAR
MODEL IN +10
BODYTYPE
SEATS
SALES
ON TABLE SET STYLE *
TYPE=HEADING,LINE=3,OBJECT=TEXT,ITEM=1,POSITION=COUNTRY,$
TYPE=HEADING,LINE=3,OBJECT=TEXT,ITEM=2,POSITION=MODEL,$

TYPE=REPORT,COLUMN=COUNTRY,LEFTGAP=0,$
TYPE=REPORT,COLUMN=MODEL,LEFTGAP=0,$

TYPE=TITLE, COLUMN=COUNTRY,BORDER=LIGHT, BORDER-LEFT=OFF,BORDER-RIGHT=OFF, BORDER-BOTTOM=OFF,$
TYPE=TITLE, COLUMN=CAR,BORDER=LIGHT, BORDER-LEFT=OFF,BORDER-RIGHT=OFF,BORDER-BOTTOM=OFF, $

TYPE=TITLE, COLUMN=MODEL,BORDER=LIGHT, BORDER-LEFT=OFF,BORDER-RIGHT=OFF,BORDER-BOTTOM=OFF, $
TYPE=TITLE, COLUMN=BODYTYPE,BORDER=LIGHT, BORDER-LEFT=OFF,BORDER-RIGHT=OFF, BORDER-BOTTOM=OFF,$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
 
Posts: 9 | Registered: May 24, 2004Report 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] need to get a common title for two columns.

Copyright © 1996-2020 Information Builders