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]Right justify multiple numeric rows in a Subfoot

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Right justify multiple numeric rows in a Subfoot
 Login/Join
 
Guru
posted
I have a report that has 3 rows of 2 decimal place dollar amounts and 1 row with a 1 decimal number. I need to have all 4 rows right justified regardless of the varying length of the number in each row. When I right justify each row in the stylesheet, the numbers still shift whenever the length of the numbers change on an individual row. The report is a PDF report. See example below. Thank you.

Total Dollars1: $159,616.13
Tot Dollars2:    $19,528.00
Dollar3:          $4,088.13
Num4:                   1.1
            OR
Total Dollars1:  $59,616.13
Tot Dollars2:    $19,528.00
Dollar3:            $488.13
Num4:                    .0

  


Dev Studio 8009

This message has been edited. Last edited by: Michele Brooks,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
Master
posted Hide Post
Can you create a CAR file demo, because Total columns are usually automatically right justified. So not sure what your asking for exactly.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
Michele, I think for PDF reports, you can solve this by specifying a width for each of the two simulated columns of the subfoot:

TABLE FILE CAR
SUM
SALES
COMPUTE TOT1/D10.2M = WEIGHT; NOPRINT
COMPUTE TOT2/D10.2M = HEIGHT; NOPRINT
COMPUTE TOT3/D10.2M = LENGTH; NOPRINT
COMPUTE NUM4/D10.1 = WIDTH; NOPRINT
BY COUNTRY
ON COUNTRY SUBFOOT
"Total Dollars1: <ST.TOT1"
"Total Dollars2: <ST.TOT2"
"Dollars3: <ST.TOT3"
"Num4: <ST.NUM4"

ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, UNITS=INCHES, FONT='ARIAL',
SIZE=9, BORDER=1, BORDER-COLOR=SILVER,
$
TYPE=SUBFOOT, ITEM=1, WIDTH=1.0, COLOR=GREEN, $
TYPE=SUBFOOT, ITEM=2, JUSTIFY=RIGHT, WIDTH=1.0, COLOR=BLUE, $
ENDSTYLE

ON TABLE PCHOLD FORMAT PDF
END

Make sure that the width is wide enough for the text and the maximum numeric values...


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
[OFFTOPIC]BTW Gavin, nice hair - a Viking in a suit![/OFFTOPIC]


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
Master
posted Hide Post
quote:
[OFFTOPIC]BTW Gavin, nice hair - a Viking in a suit![/OFFTOPIC]


Haha.. Yea, I was inspired by your lack of.. Wink



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Guru
posted Hide Post
I thank everyone for the feedback. It turns out that I had the wrong line number for the line that was not right justified. I am closing this post. Thanks again everyone.


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 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     [CLOSED]Right justify multiple numeric rows in a Subfoot

Copyright © 1996-2020 Information Builders