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     Heading Items position in EXL2K [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Heading Items position in EXL2K [SOLVED]
 Login/Join
 
Gold member
posted
Hi,

I would like to align my heading items with my columns : ie Titre with O10NOM1, ISIN with O10N001,...

How can I do? I tried with "POSITION=my column" in the stylesheet but it didn't work

  
TABLE FILE TAB010
PRINT
O10NOM1 AS 'Titre'
O10N001 AS 'ISIN'
GTI AS 'Genre de titre'
COMPUTE MNT/D20.2C = O10MNT2; AS 'Evaluation'
DEVISE AS 'Devise'
COMPUTE POIDSTAN/D7.2% = O10PMT2TAN; AS '% du TNA du compartiment'
BY O10SOC NOPRINT
BY HIGHEST 10 O10MNT2 NOPRINT
WHERE O10DATE EQ LASTVNIDATE;
ON O10SOC SUBHEAD
"<LIBCOMPART : <DATEVNI"
"Titre<+0>ISIN<+0>Genre de titre<+0>Evaluation<+0>Devise<+0>% du TNA du compartiment"
ON O10SOC SUBFOOT
"<TOTTAN"
""
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=CM,ORIENTATION=PORTRAIT,SQUEEZE=ON,$
TYPE=TITLE,COLOR=WHITE,$
TYPE=DATA,COLUMN=DEVISE,JUSTIFY=CENTER,$
TYPE=SUBHEAD,LINE=1,JUSTIFY=CENTER,STYLE=BOLD+ITALIC,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,STYLE=BOLD,COLOR=WHITE,BACKCOLOR=NAVY,$
TYPE=SUBFOOT,JUSTIFY=RIGHT,STYLE=BOLD,$
ENDSTYLE
END

This message has been edited. Last edited by: Jérény Deidda,


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
<JG>
posted
Position only works for PDF.

For EXL2K read up on HEADALIGN and COLSPAN
 
Report This Post
Gold member
posted Hide Post
I tried but no success

Do you have an example?


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
Expert
posted Hide Post
TABLE FILE TAB010
PRINT
   O10NOM1 AS '' 
   O10N001 AS '' 
   GTI  AS '' 
COMPUTE MNT/D20.2C = O10MNT2; AS ''
DEVISE AS ''
COMPUTE POIDSTAN/D7.2% = O10PMT2TAN; AS ''
BY O10SOC NOPRINT
BY HIGHEST 10 O10MNT2 NOPRINT
WHERE O10DATE EQ LASTVNIDATE;
ON O10SOC SUBHEAD
"<LIBCOMPART : <DATEVNI"
"Titre<+0>ISIN<+0>Genre de titre<+0>Evaluation<+0>Devise<+0>% du TNA du compartiment"
ON O10SOC SUBFOOT
"<TOTTAN"
""
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=CM,ORIENTATION=PORTRAIT,SQUEEZE=ON,$
TYPE=TITLE,COLOR=WHITE,$
TYPE=DATA,COLUMN=DEVISE,JUSTIFY=CENTER,$

TYPE=SUBHEAD, HEADALIGN=BODY, JUSTIFY=CENTER, $

TYPE=SUBHEAD,LINE=1,STYLE=BOLD+ITALIC,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,STYLE=BOLD,COLOR=WHITE,BACKCOLOR=NAVY,$
TYPE=SUBFOOT,JUSTIFY=RIGHT,STYLE=BOLD,$
ENDSTYLE
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Gold member
posted Hide Post
Thanks Tom,

it's 90% of that I want. The problem remains for the first line of my heading who must be center on all the 6 columns.

I succeed to obtain what I wanted with this code:

TABLE FILE TAB010
PRINT
O10NOM1 AS 'Titre'
O10N001 AS 'ISIN'
GTI AS 'Genre de titre'
COMPUTE MNT/D20.2C = O10MNT2; AS 'Evaluation'
DEVISE AS 'Devise'
COMPUTE POIDSTAN/D7.2% = O10PMT2TAN; AS '% du TNA du compartiment'
BY O10SOC NOPRINT
BY HIGHEST 10 O10MNT2 NOPRINT
WHERE O10DATE EQ LASTVNIDATE;
ON O10SOC SUBHEAD
"<LIBCOMPART : <DATEVNI"
"---------------------------<+0>Titre<+0>------------------------------------<+0>ISIN<+0>-----------<+0>Genre de titre<+0>-----<+0>Evaluation<+0>-<+0>Devise<+0>-<+0>% du TNA du compartiment"
ON O10SOC SUBFOOT
"<TOTTAN"
""
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=CM,ORIENTATION=PORTRAIT,SQUEEZE=ON,$
TYPE=TITLE,COLOR=WHITE,$
TYPE=DATA,COLUMN=DEVISE,JUSTIFY=CENTER,$
TYPE=SUBHEAD,LINE=1,JUSTIFY=CENTER,STYLE=BOLD+ITALIC,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,STYLE=BOLD,COLOR=WHITE,BACKCOLOR=NAVY,HEADALIGN=BODY,$
TYPE=SUBHEAD,LINE=2,ITEM=1,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,ITEM=3,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,ITEM=5,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,ITEM=7,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,ITEM=9,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,ITEM=11,COLOR=NAVY,$
TYPE=SUBHEAD,LINE=2,ITEM=12,SIZE=9,$
TYPE=SUBFOOT,JUSTIFY=RIGHT,STYLE=BOLD,$
ENDSTYLE
END


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
Expert
posted Hide Post
Jérény,

Use a combination of COLSPAN and HEADALIGN=BODY with a DEFINE to achieve your first line -
DEFINE FILE CAR
  MY_HEADING/A50 = COUNTRY || (' : ' | CAR);
END
TABLE FILE CAR
  SUM RCOST
      DCOST
      SEATS
   BY COUNTRY
   BY CAR
   BY MODEL
WHERE COUNTRY EQ 'ENGLAND'
ON COUNTRY SUBHEAD
  "<MY_HEADING "
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
  UNITS=CM, ORIENTATION=PORTRAIT, SQUEEZE=ON, HEADALIGN=BODY, $
  TYPE=SUBHEAD, LINE=1, ITEM=1, COLSPAN=6, JUSTIFY=CENTER, $
ENDSTYLE
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Thanks Tonny,

I founded the same solution but I didn't post to close the topic. I will tag this topic as SOLVED.


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report 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     Heading Items position in EXL2K [SOLVED]

Copyright © 1996-2020 Information Builders