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     How to wrap a large value on subhead

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to wrap a large value on subhead
 Login/Join
 
<new2focus>
posted
TABLE FILE CAR
PRINT COUNTRY CAR
WHERE ( COUNTRY EQ 'ENGLAND' );
ON TABLE HOLD AS NEWCAR FORMAT ALPHA
END
-RUN
DEFINE FILE NEWCAR
SUBHEAD_VAL/A3000 = 'WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW ';
REPORT_VAL/A3000 = 'SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS ';
END
-RUN
-*
TABLE FILE NEWCAR
SUM REPORT_VAL AS 'Large Value'
BY CAR AS 'Country'
HEADING
""
"LARGE VALUE ON SUBHEAD TEST"
""
"Remarks: <SUBHEAD_VAL"
""
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET NODATA ''
ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='A4', SQUEEZE=ON, ORIENTATION=LANDSCAPE,
LEFTMARGIN=0.6, RIGHTMARGIN=0.3, TOPMARGIN=0.3, BOTTOMMARGIN=0.3, $

TYPE=REPORT, GRID=OFF, TOPGAP=0.02, BOTTOMGAP=0.02,
FONT='HELVETICA', SIZE=8, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, $

TYPE=REPORT, COLUMN=P1, SQUEEZE=1.0, JUSTIFY=LEFT, $
TYPE=REPORT, COLUMN=P2, WRAP=8.7, $

TYPE=HEADING, STYLE=BOLD, SIZE=10, JUSTIFY=LEFT, $
TYPE=HEADING, LINE=1, SIZE=16, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=4, ITEM=2, SIZE=10, JUSTIFY=LEFT, CLASS=WRAP, WRAP=8.4, $

TYPE=TITLE, BORDER=LIGHT, BACKCOLOR='LIGHT GREY', STYLE=-UNDERLINE+BOLD+ITALIC, $

TYPE=DATA, BORDER=LIGHT, $
ENDSTYLE
END

If I comment out the remarks on the subhead the report is displaying fine. When running with the remark on subhead, the first record on the report is displaying twice. Could anyone know how to fix this?
 
Report This Post
Gold member
posted Hide Post
I think this will do what you want. First put a reference to a CSS CLASS called "WRAP" in your WF stylesheet like so:

TYPE=HEADING, LINE=4, ITEM=2, SIZE=10, JUSTIFY=LEFT, CLASS=WRAP, $

Then set white-space to normal in a CSS entry called "WRAP" like so:

.WRAP {white-space: normal;}

This seems to work for me.
 
Posts: 90 | Location: Tinker AFB | Registered: June 03, 2003Report This Post
<new2focus>
posted
How do I put the style sheet entry for .WRAP {white-space: normal;} ? This report is a part of a complex ompound report which is on pdf format.
 
Report This Post
Gold member
posted Hide Post
You can do it in an externally referenced CSS or you can do it directly within the HEAD tag of your HTML file like so:

<style type="text/css"><br />< !--<br />.WRAP {white-space: normal;}<br />--><br /></style> 
 
Posts: 90 | Location: Tinker AFB | Registered: June 03, 2003Report This Post
<new2focus>
posted
But mine is a pdf report.
 
Report This Post
Master
posted Hide Post
can you tell me which version are you running on?

I tried in my machine having Webfocus 5.3.3 version and it works fine.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
<new2focus>
posted
I am running it on webfocus 5.3.3 too. If you are interested I can email you the 2 pdf (with & without remarks) reports.
 
Report This Post
Expert
posted Hide Post
Interestingly, on my WebFOCUS 5.3.3 server the PDF file is not generated correctly when the HEADING styling is present. The first row of column REPORT_VAL is duplicated and ovrwrites the first line for some reason. If I comment out the HEADING styling, the data is displayed correctly wrapped.
There's a bug somewhere in the generation of the PDF file, prhaps due to a large column displayed i n the Heading or data.
DEFINE FILE CAR<br />SUBHEAD_VAL/A1000 = <br />'1wwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww ' |<br />'2wwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww ' |<br />'3wwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww ' |<br />'4wwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww ' |<br />'5wwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww ' |<br />'6wwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww Wwwww ';<br />REPORT_VAL/A1000 = <br />'1ssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss ' |<br />'2ssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss ' |<br />'3ssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss ' |<br />'4ssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss ' |<br />'5ssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss ' |<br />'6ssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss Sssss ';<br />END<br />-RUN<br />-*<br />TABLE FILE CAR<br />SUM REPORT_VAL AS 'Large Value'<br />BY CAR AS 'Country'<br />HEADING<br />"LARGE VALUE ON SUBHEAD TEST"<br />""<br />"Remarks: <SUBHEAD_VAL"<br />""<br />WHERE ( COUNTRY EQ 'ENGLAND' );<br />ON TABLE NOTOTAL<br />ON TABLE SET PAGE-NUM NOPAGE<br />ON TABLE SET NODATA ''<br />ON TABLE PCHOLD FORMAT PDF<br />ON TABLE SET STYLE *<br />UNITS=IN, PAGESIZE='A4', SQUEEZE=ON, ORIENTATION=LANDSCAPE,<br />LEFTMARGIN=0.3, RIGHTMARGIN=0.3, TOPMARGIN=0.3, BOTTOMMARGIN=0.3, $<br /><br />TYPE=REPORT, GRID=OFF, TOPGAP=0.02, BOTTOMGAP=0.02,<br />FONT='HELVETICA', SIZE=8, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, $<br /><br />TYPE=HEADING, LINE=3, ITEM=2, WRAP=8, $<br />TYPE=REPORT, COLUMN=P2, WRAP=8, $<br />ENDSTYLE<br />END
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<new2focus>
posted
For me the pdf is getting generated with the heading style on but as you said the the first row is getting displayed twice, overlapping with each other.
 
Report This Post
Master
posted Hide Post
Yes, send it to me.

g_kamesh@yahoo.com
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
Still a problem on 7.1 on XP as well. I think you need to raise a case with IB on this.
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<new2focus>
posted
The reply from IBI was "The longest character string available in webFOCUS is 256 bytes.
Character data longer than that is considered TEXT, and you may not place text fields into SUBFOOT or SUBHEAD text. "

Kamesh emailed me this modified code (Changed the HEADING to ON TABLE SUBHEAD) which is displaying it correctly. Thanks for your help Kamesh.

TABLE FILE CAR
PRINT COUNTRY CAR
WHERE ( COUNTRY EQ 'ENGLAND' );
ON TABLE HOLD AS NEWCAR FORMAT ALPHA
END
-RUN
DEFINE FILE NEWCAR
SUBHEAD_VAL/A3000 = 'WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW WWWWW ';
REPORT_VAL/A3000 = 'SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS SSSSS ';
END
-RUN
-*
TABLE FILE NEWCAR
SUM REPORT_VAL AS 'Large Value'
BY CAR AS 'Country'
ON TABLE SUBHEAD
""
"LARGE VALUE ON SUBHEAD TEST"
""
"Remarks: <SUBHEAD_VAL"
""
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET NODATA ''
ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='A4', SQUEEZE=ON, ORIENTATION=LANDSCAPE,
LEFTMARGIN=0.6, RIGHTMARGIN=0.3, TOPMARGIN=0.3, BOTTOMMARGIN=0.3, $

TYPE=REPORT, GRID=OFF, TOPGAP=0.02, BOTTOMGAP=0.02,
FONT='HELVETICA', SIZE=8, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, $

TYPE=REPORT, COLUMN=P1, SQUEEZE=1.0, JUSTIFY=LEFT, $
TYPE=REPORT, COLUMN=P2, WRAP=8.7, $

TYPE=TABHEADING, STYLE=BOLD, SIZE=10, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=2, SIZE=16, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=4, ITEM=2, SIZE=10, JUSTIFY=LEFT, CLASS=WRAP, WRAP=9.8, $

TYPE=TITLE, BORDER=LIGHT, BACKCOLOR='LIGHT GREY', STYLE=-UNDERLINE+BOLD+ITALIC, $

TYPE=DATA, BORDER=LIGHT, $
ENDSTYLE
END
 
Report 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     How to wrap a large value on subhead

Copyright © 1996-2020 Information Builders