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 make border fit the field size on SUBHEAD?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to make border fit the field size on SUBHEAD?
 Login/Join
 
Guru
posted
Hello,

Can anyone help me to define the size of the border on a SUBHEAD field?

 

TABLE FILE CAR
SUM  SALES
RETAIL_COST
DEALER_COST
COMPUTE LUCRO/D8 = RETAIL_COST - DEALER_COST;
BY COUNTRY NOPRINT
BY MODEL
ON COUNTRY SUBHEAD 

"<COUNTRY"
ON COUNTRY SUBTOTAL
HEADING
"TEST SALES REPORT"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,
     FONT='ARIAL',
     SIZE=6,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
	 WRAP=1,
$
TYPE=HEADING,

LINE=1,
SIZE=11,
STYLE=BOLD,
JUSTIFY=CENTER, $

TYPE=SUBHEAD,
BY=COUNTRY,
ITEM=1,
WRAP=1,
COLSPAN=1,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP=LIGHT,
-*BACKCOLOR=RGB(192 192 192),
$

TYPE=SUBTOTAL,
BACKCOLOR='GREY',
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
STYLE=BOLD,
$

END

 



Thanks

This message has been edited. Last edited by: Ricardo Augusto,


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
This might help:

Creating Reports With Report Painter > Styling Reports With Report Painter > Aligning Fields and Text in Headings and Footings

quote:
You can use the ALIGN-BORDERS=BODY attribute in a StyleSheet to align the subheadings and subfootings with the report body on PDF report output instead of the other heading elements.


[TYPE=REPORT,] ALIGN-BORDERS={OFF|BODY} ,$

quote:

OFF - Does not align the right margin of subheadings and subfootings with the report body.

BODY - Specifies that the width of subheading and subfooting lines is independent of heading,
footing, tabheading, and tabfooting lines, and that the right border of the report body will
be aligned by either extending subheading and subfooting lines (if they are narrower than
the data columns) or extending the data columns (if the data columns are narrower than
the maximum width of subheadings and subfootings).


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
Guru
posted Hide Post
Thanks Francis,

but I still got the same results.

 


TABLE FILE CAR
SUM  SALES
RETAIL_COST
DEALER_COST
COMPUTE LUCRO/D8 = RETAIL_COST - DEALER_COST;
BY COUNTRY NOPRINT
BY MODEL
ON COUNTRY SUBHEAD 

"<COUNTRY"
ON COUNTRY SUBTOTAL
HEADING
"TEST SALES REPORT"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,
     FONT='ARIAL',
     SIZE=6,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
	 WRAP=1,
	 ALIGN-BORDERS=BODY,
	 
$
TYPE=HEADING,

LINE=1,
SIZE=11,
STYLE=BOLD,
JUSTIFY=CENTER, $

TYPE=SUBHEAD,
ITEM=1,
WRAP=1,
COLSPAN=1,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP=LIGHT,
BACKCOLOR=RGB(192 192 192),

$

TYPE=SUBTOTAL,
BACKCOLOR='GREY',
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
STYLE=BOLD,
$

END

 


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Ricardo, I played with the code a bit and I believe the PDF generator is buggy. It looks like there's no way to solve your issue.

Tech Support told me about ALIGN-BORDERS=BODY and that solved a problem in v8.0.08 that did not exist in v7.7.05.

Frowner


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
Guru
posted Hide Post
Ok, thanks anyway Francis.

I 'solved' it using BORDERS on REPORT. It is pretty now.

Thanks again.


 

TABLE FILE CAR
SUM  SALES
RETAIL_COST
DEALER_COST
COMPUTE LUCRO/D8 = RETAIL_COST - DEALER_COST;
BY COUNTRY NOPRINT
BY MODEL
ON COUNTRY SUBHEAD 

"<COUNTRY"
ON COUNTRY SUBTOTAL
HEADING
"TEST SALES REPORT"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,
     FONT='ARIAL',
     SIZE=6,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
	 WRAP=1,
	 ALIGN-BORDERS=BODY,
	 BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP=LIGHT,
	 
$
TYPE=HEADING,

LINE=1,
SIZE=11,
STYLE=BOLD,
JUSTIFY=CENTER, $

TYPE=SUBHEAD,
ITEM=1,
WRAP=1,
COLSPAN=1,

BACKCOLOR=RGB(192 192 192),

$

TYPE=SUBTOTAL,
BACKCOLOR='GREY',
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
STYLE=BOLD,
$

END
 


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Add
TYPE=REPORT,
     SQUEEZE=ON,
$

Still not perfect (now it's the subtotal that s too large), but better.

Where does the column after LUCRO is coming from ? This is the reason why your subhead are so large, there is an "hidden" column...


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
It must be really hidden, as I cannot see it in the code. Smiler


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
Virtuoso
posted Hide Post
quote:
It must be really hidden, as I cannot see it in the code. Smiler


Also think the same thing...

Maybe related with the COMPUTE where in the internal matrix there are some other fields ?...


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
I wish I could have borders only on SUBHEAD values, but using BORDERS ans SQUEEZE on REPORT solved my issue.

Thanks Francis and Martin.

Have a nice day!


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report 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 make border fit the field size on SUBHEAD?

Copyright © 1996-2020 Information Builders