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] Question on Line Spacing in a Heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Question on Line Spacing in a Heading
 Login/Join
 
Gold member
posted
Given the following code example, how can I remove the spaces before each result line, so that each line in the heading has equal spacing?

Is there a more efficient or elegant way to achieve this type of formatting? (note: I do want to use this style sheet in my reports.)

 
TABLE FILE CAR
PRINT COUNTRY NOPRINT
COMPUTE V1/A3 = 'AAA'; NOPRINT
COMPUTE V2/A3 = 'BBB'; NOPRINT
COMPUTE V3/A3 = 'CCC'; NOPRINT
COMPUTE V4/A3 = 'DDD'; NOPRINT
COMPUTE V5/A3 = 'EEE'; NOPRINT
HEADING
"Title"
"Results 1: <V1"
"Results 2: <V2" 
"Results 3: <V3" 
"Results 4: <V4" 
"Results 5: <V5"
"Results ALL: AAA BBB CCC DDD EEE"
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=1,SIZE=8,JUSTIFY=LEFT,STYLE=BOLD+UNDERLINE,$
TYPE=HEADING,LINE=2,OBJECT=TEXT,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=2,OBJECT=FIELD,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=2,JUSTIFY=LEFT, $
TYPE=HEADING,LINE=3,OBJECT=TEXT,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=3,OBJECT=FIELD,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=3,JUSTIFY=LEFT,$
TYPE=HEADING,LINE=4,OBJECT=TEXT,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=4,OBJECT=FIELD,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=4,JUSTIFY=LEFT,$
TYPE=HEADING,LINE=5,OBJECT=TEXT,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=5,OBJECT=FIELD,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=5,JUSTIFY=LEFT,$
TYPE=HEADING,LINE=6,OBJECT=TEXT,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=6,OBJECT=FIELD,ITEM=1,SIZE=8,$
TYPE=HEADING,LINE=6,JUSTIFY=LEFT,$
TYPE=HEADING,LINE=7,OBJECT=TEXT,ITEM=1,SIZE=8,JUSTIFY=LEFT,$
END


This message has been edited. Last edited by: Joey Sandoval,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Virtuoso
posted Hide Post
You can specify styling that applies to all lines of a heading and then specify additional styling for specific lines or parts of a line. See if this helps:

TABLE FILE CAR
PRINT COUNTRY NOPRINT
 COMPUTE V1/A3 = 'AAA'; NOPRINT
 COMPUTE V2/A3 = 'BBB'; NOPRINT
 COMPUTE V3/A3 = 'CCC'; NOPRINT
 COMPUTE V4/A3 = 'DDD'; NOPRINT
 COMPUTE V5/A3 = 'EEE'; NOPRINT
 HEADING
  "Title"
  "Results 1: <V1"
  "Results 2: <V2" 
  "Results 3: <V3" 
  "Results 4: <V4" 
  "Results 5: <V5"
  "Results ALL: <V1<V2<V3<V4<V5"
 ON TABLE PCHOLD FORMAT HTML
 ON TABLE SET HTMLCSS ON
 ON TABLE SET PAGE NOPAGE
 ON TABLE SET STYLE *
  INCLUDE = endeflt,$
  TYPE=REPORT,LEFTGAP=0.05,RIGHTGAP=0.05,$
  TYPE=HEADING,SIZE=8,JUSTIFY=LEFT,HEADALIGN=BODY,$
  TYPE=HEADING,LINE=1,STYLE=BOLD+UNDERLINE,$
 ENDSTYLE
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Thank you Dan. I guess the Report Painter does not always create the most efficient formatting code to work with. I will use this going forward. Thanks again!




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Gold member
posted Hide Post
Dan, when removing the NOPRINT commands from the computed field, dashes appear on the very first line for each column. How do you suppress that?

  
TABLE FILE CAR
PRINT COUNTRY NOPRINT
 COMPUTE V1/A3 = 'AAA';
 COMPUTE V2/A3 = 'BBB'; 
 COMPUTE V3/A3 = 'CCC'; 
 COMPUTE V4/A3 = 'DDD'; 
 COMPUTE V5/A3 = 'EEE'; 
 HEADING
  "Title"
  "LINE 1: <V1"
  "LINE 2: <V2" 
  "LINE 3: <V3" 
  "LINE 4: <V4" 
  "LINE 5: <V5"
  "ALL LINES: <V1<V2<V3<V4<V5"
 ON TABLE PCHOLD FORMAT HTML
 ON TABLE SET HTMLCSS ON
 ON TABLE SET PAGE NOPAGE
 ON TABLE SET STYLE *
  INCLUDE = endeflt,$
  TYPE=REPORT,LEFTGAP=0.05,RIGHTGAP=0.05,$
  TYPE=HEADING,SIZE=8,JUSTIFY=LEFT,HEADALIGN=BODY,$
  TYPE=HEADING,LINE=1,STYLE=BOLD+UNDERLINE,$
 ENDSTYLE
END




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Platinum Member
posted Hide Post
Not sure why, but change this line:

TYPE=HEADING,LINE=1,STYLE=BOLD+UNDERLINE,$

to this:

TYPE=HEADING,LINE=1,ITEM=1,STYLE=BOLD+UNDERLINE,$

and try again.

~Jim


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Gold member
posted Hide Post
Thanks Jim. I guess that prevents blank spaces in each column from being underlined.




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report 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] Question on Line Spacing in a Heading

Copyright © 1996-2020 Information Builders