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     [CLOSED] STYLE SHEET TABHEADING

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] STYLE SHEET TABHEADING
 Login/Join
 
Platinum Member
posted
Hi
Having issue with Headers.. its not adding a space where I need and adding spaces where I don't need. Sounds simple, but driving me crazy..

Can someone tell me what I am missing? THANKS


** OUTPUT looks like below **
MAYSVILLE,KY
Financial Impact Evaluation - July 2013

** Code **
-* year from Launch Page
-DEFAULT &FISC_YEAR = '2013';
..
DEFINE ...
-*City, State
LNAME/A35=LOC_NAME||', '||LOCATION_STATE;
-* Mon
EMO/Mtr=&PROC_MONTH;
END

TABLE FILE ..
SUM
MTD_AMT1 NOPRINT
BY LINE_DESCRIPT NOPRINT
ON LINE_DESCRIPT SUBHEAD
"Financial Analysi.." (WORKS)
"Income" (WORKS)
" Net Income Resources.." (WORKS)
ON TABLE SUBHEAD
"" (NO SPACE AFTER COMMA,see above)
"Financial Impact Evaluation - <+0><+0>&FISC_YEAR" (ADDS SPACES AFTER - AND MON" - July 2013
FOOTING
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.500000,
RIGHTMARGIN=0.500000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.500000,
SQUEEZE=ON,
GRID=ON,
ORIENTATION=LANDSCAPE,$

TYPE=REPORT,
FONT='ARIAL',
SIZE=9,
$
-* HEADING
TYPE=TABHEADING,
HEADALIGN=BODY,
$
TYPE=TABHEADING,
LINE=1,
SIZE=8,
COLOR='RED',
STYLE=BOLD,
POSITION=4,
$
-*"Financial Impact Evaluation <+0><+0>&FISC_YEAR"
TYPE=TABHEADING,
LINE=2,
ITEM=1,
POSITION=3.5,
SIZE=8,
STYLE=BOLD,
COLSPAN=1,
$
TYPE=TABHEADING,
LINE=2,
ITEM=2,
SIZE=8,
STYLE=BOLD,
COLSPAN=1,
$
TYPE=TABHEADING,
LINE=2,
ITEM=3,
SIZE=8,
STYLE=BOLD,
COLSPAN=1,
$

This message has been edited. Last edited by: <Kathryn Henning>,


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
 
Posts: 134 | Location: USA | Registered: August 21, 2008Report This Post
Virtuoso
posted Hide Post
quote:
LNAME/A35=LOC_NAME||', '||LOCATION_STATE;


The double pipe || removes spaces at the end of the left concatenated field, use :

LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE;  


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Thanks MartinY.. I had already tried that with the following results.. HTML adds spaces

LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE;
MAYSVILLE, KY

LNAME/A35=LOC_NAME | ', ' || LOCATION_STATE;
MAYSVILLE ,KY


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
 
Posts: 134 | Location: USA | Registered: August 21, 2008Report This Post
Platinum Member
posted Hide Post
In the HTML Report 1st Example Spaces are lot more than whats shows here... 10 spaces AFTER the comma

the same in the sample two 10 spaces BEFORE the comma

I selected from the heading and pasted in notepad to remove the extra lines that are not relevant here , then cut and pasted here.. its normal but in html report it has 10 spaces


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
 
Posts: 134 | Location: USA | Registered: August 21, 2008Report This Post
Virtuoso
posted Hide Post
quote:
LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE;
MAYSVILLE, KY


HTML doesn't add space, you have a space after the coma which is the left side field of the concatenation using the single pipe.

quote:
LNAME/A35=LOC_NAME | ', ' || LOCATION_STATE;
MAYSVILLE ,KY


HTML doesn't add space, LOC_NAME definition is longer than the field value, maybe something like A10 where MAYSVILLE is 9 long, so you have a space which is the left side field of the concatenation using the single pipe.

Single pipe ( | ) concatenate WITHOUT removing trailing space on the left side field of the concatenation.

Double pipe ( || ) concatenate WITH removing trailing space on the left side field of the concatenation.

Please provide sample a is and input field definition (MFD).


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
Please! Always put your code between code tags, like this:

[CODE]
LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE;
[/CODE]
(That's what </> is for)

Try:

LNAME/A35 = LOC_NAME || (', ' | LOCATION_STATE);
The brackets are important.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Martin and Francis
brackets solved the issue of the 1st Line.. Thanks

2nd line of the heading its Adding space BEFORE July and also before 2013

Thanks

here is the code
ON TABLE SUBHEAD
"<LNAME>"
"Financial Impact Evaluation - <+0><EMO><FY>"
FOOTING
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
           UNITS=IN,
           PAGESIZE='Letter',
           LEFTMARGIN=0.500000,
           RIGHTMARGIN=0.500000,
           TOPMARGIN=0.500000,
           BOTTOMMARGIN=0.500000,
           SQUEEZE=ON,
           GRID=OFF,
           ORIENTATION=LANDSCAPE,
		   $

TYPE=REPORT,FONT='ARIAL',SIZE=9,$
-* HEADING
TYPE=TABHEADING,HEADALIGN=BODY,$
TYPE=TABHEADING,LINE=1,SIZE=8,COLOR='RED',STYLE=BOLD,POSITION=3.5,$
-*"Financial Impact Evaluation <+0><EMO><+0>&FISC_YEAR"
TYPE=TABHEADING,LINE=2,ITEM=1,POSITION=3,SIZE=8,STYLE=BOLD,SQUEEZE=ON,$
TYPE=TABHEADING,LINE=2,ITEM=2,SIZE=8,STYLE=BOLD,COLSPAN=1,SQUEEZE=ON,$
TYPE=TABHEADING,LINE=2,ITEM=3,SIZE=8,STYLE=BOLD,COLSPAN=1,SQUEEZE=ON,$
TYPE=TABHEADING,LINE=2,ITEM=4,SIZE=8,STYLE=BOLD,COLSPAN=1,SQUEEZE=ON,$
-*

 


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
 
Posts: 134 | Location: USA | Registered: August 21, 2008Report This Post
Expert
posted Hide Post
TYPE=TABHEADING,HEADALIGN=BODY,$


You're aligning each element of the heading to a report column - that's why there appears to be space between each element


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 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     [CLOSED] STYLE SHEET TABHEADING

Copyright © 1996-2020 Information Builders