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]HEADING IN HTML TOO LONG-NEED A NEW LINE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]HEADING IN HTML TOO LONG-NEED A NEW LINE
 Login/Join
 
Gold member
posted
Hi,
I have a report heading in HTML that is too long and I want to get that to next line after some length.. Do we have any specific command in styling for HEADING to get that to new line.
My report heading values are dynamically coming from the drop down...so I have a dialogue mananger command..
Please see the example below.
 TABLE FILE CAR
PRINT CAR
COUNTRY
HEADING
"THIS IS A CAR TEST REPORT AND I WANT TO SCROLL TO NEW LINE"
END 

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


WF 8.2.0.1, MRE, BI Dashboard, Self Service, Dev Studio, MS Windows XP SP1, Apache Tomcat/6.0.20, Oracle 11 g, I.E. 9 Output formats: HTML, Excel 2000 and PDF,Active Reports
 
Posts: 60 | Location: USA | Registered: April 07, 2011Report This Post
Expert
posted Hide Post
TABLE FILE CAR
PRINT CAR
COUNTRY
HEADING
"THIS IS A CAR TEST REPORT AND I WANT TO SCROLL TO NEW LINE"
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1, COLOR=BLUE, WIDTH=2, $
END 


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
If your report is to be rendered in HTML only, you could try adding a "<br >" in between to split it ... but then you'll have to find a proper position to place it as you wouldn't want in right in the middle of a word ...

Hopefully someone knows of a magic style sheet keyword for this.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
quote:
WIDTH=2, $

Nice! That's what I said about "magic"!



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
sorry for the TABLE FILE.. I actually have a GRAPH file and the WIDTH=2.. doesnt work in it.. I have very little experience working with graphs.. so I'm posting this...
 GRAPH FILE CAR
HEADING
"CAR REPORT,CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT,  "
" GRAPH REPORT"
"TEST GRAPH REPORT"
-* Created by Advanced Graph Assistant
SUM DEALER_COST AS 'Hours: '
BY  CAR AS ''
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET EMPTYREPORT ON
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 500
ON GRAPH SET VAXIS 500
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIESINGL
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET GRAPHSTYLE *
-INCLUDE GRAPHCOLORS
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setReverseGroups(true);
setTextFormatPattern(getPieSliceLabel(),"#");
setLegendOrient(0);
setTransparentFillColor(getLegendArea(),false);
setGradientNumPins(getSeries(-1),2);
setGradientPinPosition(getSeries(-1),0.0,0);
setGradientPinPosition(getSeries(-1),1.0,1);
setDisplay(getBeveledLegendMarker(),true);
setLegendPosition(-1);
setLegendAutomatic(false);
setPlace(false);
setDisplay(getTitle(),true);
setDisplay(getSubtitle(),true);
setTextJustHoriz(getSubtitle(),0);
setTextJustHoriz(getTitle(),0);
setPlaceResize(getSubtitle(),0);
setPlaceAlign(getSubtitle(),0);
setPlaceAlign(getTitle(),0);
setRect(getTitle(),new Rectangle(-16000.0,13090.0,29866.0,2909.0));
setFontSizeAbsolute(getTitle(),true);
setFontSizeInPoints(getTitle(),8);
setPlaceResize(getTitle(),0);
setFontSizeAbsolute(getSubtitle(),true);
setFontSizeInPoints(getSubtitle(),8);
setPlaceResize(getFootnote(),0);
setPlaceAlign(getFootnote(),0);
setFillColor(getFootnote(),new Color(255,0,0));
setTextJustHoriz(getFootnote(),0);
setFillColor(getPieSliceLabel(),new Color(0,0,0));
setPieFeelerTextDisplay(2);
setPlaceResize(getPieSliceLabel(),0);
setFontStyle(getPieSliceLabel(),0);
setDisplay(getPieLabel(),false);
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSizeInPoints(getPieSliceLabel(),8);
setRect(getSubtitle(),new Rectangle(-16000.0,12121.0,26666.0,1939.0));
setFontSizeAbsolute(getFootnote(),true);
setFontSizeInPoints(getFootnote(),8);
setTextFormatPreset(getPieSliceLabel(),3);
setPieRotate(50);
setTextString(getSubtitle(),"");
setTextString(getTitle(),"");
setShadowDisplay(getPieFrame(),false);
setFontSizeAbsolute(getLegendText(),true);
setFontSizeInPoints(getLegendText(),8);
-*setTextString(getFootnote(),"* Top 25 Activities are individually charted. Remainder are grouped into 'ALL OTHERS'");
setDisplay(getFootnote(),true);
setFontSizeAbsolute(getPieLabel(),true);
setFontSizeInPoints(getPieLabel(),8);
setScrollOffsetSeries(0);
setPieTilt(10);
setPieDepth(10);
setRect(getFootnote(),new Rectangle(-15466.0,-9696.0,14933.0,3878.0));
setRect(getPieFrame(),new Rectangle(-19200.0,-22787.0,26666.0,48484.0));
setRect(getLegendArea(),new Rectangle(4266.0,-9212.0,17173.0,25212.0));
ENDSTYLE
ON TABLE SET STYLE *
TYPE=HEADING,
FONT='ITALIC',
STYLE=BOLD,
JUSTIFY=LEFT,$
SIZE=3,$
$
TYPE=HEADING,
LINE=1,
FONT='ARIAL',
SIZE=1,
STYLE=BOLD,
WIDTH=2,$
$
TYPE=HEADING,
LINE=2,
FONT='ARIAL',
SIZE=3,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=3,
FONT='ARIAL',
SIZE=3,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=4,
FONT='ARIAL',
SIZE=9,
STYLE=BOLD,
$
ENDSTYLE
END
-EXIT
 


WF 8.2.0.1, MRE, BI Dashboard, Self Service, Dev Studio, MS Windows XP SP1, Apache Tomcat/6.0.20, Oracle 11 g, I.E. 9 Output formats: HTML, Excel 2000 and PDF,Active Reports
 
Posts: 60 | Location: USA | Registered: April 07, 2011Report This Post
Virtuoso
posted Hide Post
-DEFAULT &HEADING1='CAR REPORT,CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT, CAR REPORT,';
-DEFAULT &MAXLEN=50;
DEFINE FILE CAR
HEADING1/A200 = PARAG(ARGLEN(200, &HEADING1.QUOTEDSTRING, 'I4'), &HEADING1.QUOTEDSTRING, '@', &MAXLEN, HEADING1);
HEADING2/A225 = STRREP (ARGLEN(200, HEADING1, 'I4'), HEADING1, 1, '@', 6, '<br />', 200, HEADING2);
END
GRAPH FILE CAR
HEADING
"<HEADING2"
" GRAPH REPORT"
"TEST GRAPH REPORT"
-* Created by Advanced Graph Assistant
SUM DEALER_COST AS 'Hours: '
BY  CAR AS ''
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET EMPTYREPORT ON
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 500
ON GRAPH SET VAXIS 500
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIESINGL
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET GRAPHSTYLE *
-INCLUDE GRAPHCOLORS
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setReverseGroups(true);
setTextFormatPattern(getPieSliceLabel(),"#");
setLegendOrient(0);
setTransparentFillColor(getLegendArea(),false);
setGradientNumPins(getSeries(-1),2);
setGradientPinPosition(getSeries(-1),0.0,0);
setGradientPinPosition(getSeries(-1),1.0,1);
setDisplay(getBeveledLegendMarker(),true);
setLegendPosition(-1);
setLegendAutomatic(false);
setPlace(false);
setDisplay(getTitle(),true);
setDisplay(getSubtitle(),true);
setTextJustHoriz(getSubtitle(),0);
setTextJustHoriz(getTitle(),0);
setPlaceResize(getSubtitle(),0);
setPlaceAlign(getSubtitle(),0);
setPlaceAlign(getTitle(),0);
setRect(getTitle(),new Rectangle(-16000.0,13090.0,29866.0,2909.0));
setFontSizeAbsolute(getTitle(),true);
setFontSizeInPoints(getTitle(),8);
setPlaceResize(getTitle(),0);
setFontSizeAbsolute(getSubtitle(),true);
setFontSizeInPoints(getSubtitle(),8);
setPlaceResize(getFootnote(),0);
setPlaceAlign(getFootnote(),0);
setFillColor(getFootnote(),new Color(255,0,0));
setTextJustHoriz(getFootnote(),0);
setFillColor(getPieSliceLabel(),new Color(0,0,0));
setPieFeelerTextDisplay(2);
setPlaceResize(getPieSliceLabel(),0);
setFontStyle(getPieSliceLabel(),0);
setDisplay(getPieLabel(),false);
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSizeInPoints(getPieSliceLabel(),8);
setRect(getSubtitle(),new Rectangle(-16000.0,12121.0,26666.0,1939.0));
setFontSizeAbsolute(getFootnote(),true);
setFontSizeInPoints(getFootnote(),8);
setTextFormatPreset(getPieSliceLabel(),3);
setPieRotate(50);
setTextString(getSubtitle(),"");
setTextString(getTitle(),"");
setShadowDisplay(getPieFrame(),false);
setFontSizeAbsolute(getLegendText(),true);
setFontSizeInPoints(getLegendText(),8);
-*setTextString(getFootnote(),"* Top 25 Activities are individually charted. Remainder are grouped into 'ALL OTHERS'");
setDisplay(getFootnote(),true);
setFontSizeAbsolute(getPieLabel(),true);
setFontSizeInPoints(getPieLabel(),8);
setScrollOffsetSeries(0);
setPieTilt(10);
setPieDepth(10);
setRect(getFootnote(),new Rectangle(-15466.0,-9696.0,14933.0,3878.0));
setRect(getPieFrame(),new Rectangle(-19200.0,-22787.0,26666.0,48484.0));
setRect(getLegendArea(),new Rectangle(4266.0,-9212.0,17173.0,25212.0));
ENDSTYLE
ON TABLE SET STYLE *
TYPE=HEADING,
FONT='ITALIC',
STYLE=BOLD,
JUSTIFY=LEFT,$
SIZE=3,$
$
TYPE=HEADING,
LINE=1,
FONT='ARIAL',
SIZE=1,
STYLE=BOLD,
WIDTH=2,$
$
TYPE=HEADING,
LINE=2,
FONT='ARIAL',
SIZE=3,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=3,
FONT='ARIAL',
SIZE=3,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=4,
FONT='ARIAL',
SIZE=9,
STYLE=BOLD,
$
ENDSTYLE
END



Adjust &HEADING and &MAXLEN as you need.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
thanks NJ... it works...... Smiler


WF 8.2.0.1, MRE, BI Dashboard, Self Service, Dev Studio, MS Windows XP SP1, Apache Tomcat/6.0.20, Oracle 11 g, I.E. 9 Output formats: HTML, Excel 2000 and PDF,Active Reports
 
Posts: 60 | Location: USA | Registered: April 07, 2011Report This Post
Virtuoso
posted Hide Post
Glad it did. Could you please edit the title of your original post and prefix it with [SOLVED]? That way we know it's dealt with and stop going there trying to provide unnecessary help Wink



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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]HEADING IN HTML TOO LONG-NEED A NEW LINE

Copyright © 1996-2020 Information Builders