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] right justify leader line in heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] right justify leader line in heading
 Login/Join
 
Gold member
posted
Good morning,

I have the following code in a heading
"This is the text for row 1 ________ <76 1"
"Text for row 2 ____________________ <76 2"

Since the font is not monospaced, I cannot get the end of the _______ to line up between row 1 and row 2. In Word, there is a leader tab that will allow you to add the ____ to the tab and therefore right align all ____ for all rows. Is there a way to accomplish this in WebFOCUS.

I have tried various style settings including

TYPE=HEADING, LINE=1, ITEM=2, JUSTIFY=RIGHT, WIDTH=10, $

Thank you,
Deana

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


WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively;
excel, html, pdf
 
Posts: 89 | Registered: March 19, 2011Report This Post
Virtuoso
posted Hide Post
Once a Style sheet is applied, you can use "Alignment Grid" option.

Right Header/Footer section and select "Alignment Grid..."


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
Guru
posted Hide Post
Try this
HEADING
"This is the text for row 1<+0> ________ <76 1"
"Text for row 2 <+0> ________ <76 2"

TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=2, POSITION=3.1500,$
TYPE=HEADING, LINE=2, OBJECT=TEXT, ITEM=2, POSITION=3.9500,$


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Gold member
posted Hide Post
Thank you for your assistance.

MartinY, Using the painter, I created a test fex and used the alignment grid. I still had problems getting the ____ to right align. I was able to drag the right side of the second item in each row individually. Then I had to change the source code to get the each row to align with the next. I usually use notepad to create and edit most of my reports, so this was not an issue.

RSquared, POSITION was a good starting point. Even after manipulating the starting point for each row, the right side of the lines still did not line up.

In the end, I combined WIDTH, JUSTIFY, and POSITION and modified the number of '_' entered to get closer. Some of the lines are off by ~1 mm, but probably won't be noticed by most people unless they are looking for the differences specifically.

I also replaced <76 with styles setting the POSITION and JUSTIFY attributes for the last object in each line. This makes sure that -2, 1, 10, 20, 200, etc are all right aligned.

The final product looks much better than earlier today. Thanks for your assistance.

Here is my final solution:

"This is the text for row 1<+0>________<+0>1"
"Text for row 2 <+0>____________<+0>2"


TYPE=HEADING, LINE=1, ITEM=2, POSITION=3.5000, WIDTH=3.3000, JUSTIFY=RIGHT, $
TYPE=HEADING, LINE=1, ITEM=3, POSITION=7.7500, WIDTH=0.2500, JUSTIFY=RIGHT, $
TYPE=HEADING, LINE=2, ITEM=2, POSITION=6.4500, WIDTH=0.3500, JUSTIFY=RIGHT, $
TYPE=HEADING, LINE=2, ITEM=3, POSITION=7.7500, WIDTH=0.2500, JUSTIFY=RIGHT, $


WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively;
excel, html, pdf
 
Posts: 89 | Registered: March 19, 2011Report 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] right justify leader line in heading

Copyright © 1996-2020 Information Builders