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] How to Add Spaces in the Middle of Heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to Add Spaces in the Middle of Heading
 Login/Join
 
Member
posted
Hi,

Could someone help to solve this issue?

I'd like to add some spacing in the middle of heading, but when the report displayed in browser, these added spaces was removed.

TABLE FILE CAR
PRINT
CAR
HEADING
"This is a test <+8 Title"
END

Thanks,
William Zhu

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


webfocus 5.3
WebFOCUS 7.1.x
WebFOCUS 7.6.x
WebFOCUS 7.7.x
Unix
Excel / HTML / PDF
 
Posts: 17 | Registered: February 06, 2009Report This Post
Guru
posted Hide Post
quote:
TABLE FILE CAR
PRINT
CAR
HEADING
"This is a test <+8 Title"
END


Use the Stylesheet to space the Title out. See sample below.

TABLE FILE CAR
PRINT
CAR
HEADING
"This is a test <+0 Title"
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.500000,
RIGHTMARGIN=0.500000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=12,
$

$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD ,
LINE=1,
OBJECT=TEXT,
ITEM=1,
WIDTH=2.000,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD ,
LINE=1,
OBJECT=TEXT,
ITEM=2,
WIDTH=0.850,
$
ENDSTYLE
END


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Member
posted Hide Post
Thanks,

I tried your code. It works.
Seems this is the only way.


webfocus 5.3
WebFOCUS 7.1.x
WebFOCUS 7.6.x
WebFOCUS 7.7.x
Unix
Excel / HTML / PDF
 
Posts: 17 | Registered: February 06, 2009Report This Post
Expert
posted Hide Post
Multiple spaces in HTML are always compressed to one space, this is normal HTML behaviour, nothing to do with WebFOCUS.

To force multiple spaces in HTML, you may use multiple HTML non-breaking spaces,
A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B

eg: A      B
though some web browsers may not render these correctly.

In WebFOCUS, RSquared's suggestion is your best bet.

This message has been edited. Last edited by: Francis Mariani,


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
Member
posted Hide Post
Lately, I've started using spaces in my headers instead of the <+8.

Please correct me if this is a "oh my gosh, never do it that way" example:

SET SHOWBLANKS=ON
TABLE FILE CAR
PRINT 
CAR
HEADING
"This is a test          Title"
END


Mike Honeycutt UNC Asheville


WebFocus 7.6.6, Windows
 
Posts: 17 | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
SHOWBLANKS adds &nbsp;'s for each space character in the HEADING (like my suggestion). It may come in handy.

quote:

SHOWBLANKS - The SHOWBLANKS parameter preserves leading and internal blanks in HTML and EXL2K report output.

The syntax is:

SET SHOWBLANKS = {OFF|ON}
where:

OFF Removes leading and internal blanks in HTML and EXL2K report output. OFF is the default value.

ON Preserves leading and internal blanks in HTML and EXL2K report output.


Too bad it doesn't respect the <+99 carat PDF syntax for HTML.


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
Expert
posted Hide Post
That will work for you because of the SHOWBLANKS setting. It generates the  's in the html.

Unfortunately for William, he is still on 5.3 and that SET statement is not available to him.

As for your question, it is personal preference. With the carat notation, you know how many spaces there are without counting. You might also want to place parts of your heading bases on the stylesheet POSITION attribute. In that case, you would separate your heading items with a '<+0>'. More than you wanted to know, I'm sure. Smiler


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
Thanks for so many workarounds.

I did tests on each workarounds against WF 5.3.

1) the following code working:

SET SHOWBLANKS = ON
TABLE FILE CAR
PRINT
CAR
HEADING
"THIS IS A TESTING TITLE"
END
-RUN


2) this code doesn't work:

TABLE FILE CAR
PRINT
CAR
HEADING
"THIS IS A A      B TESTING TITLE"
END
-RUN

When run this code, it ask for value for variable "nbsp", if I give it value " ", then spaces displayed; otherwise, it don't.


Thanks for all the help,
William Zhu


webfocus 5.3
WebFOCUS 7.1.x
WebFOCUS 7.6.x
WebFOCUS 7.7.x
Unix
Excel / HTML / PDF
 
Posts: 17 | Registered: February 06, 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] How to Add Spaces in the Middle of Heading

Copyright © 1996-2020 Information Builders