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.
Thank you very much for the Suggestion. But It does not work properly with Subheads....
DEFINE FILE CAR
BR/A4='<BR>';
END
TABLE FILE CAR
SUM SEATS
BY COUNTRY BY CAR
ON COUNTRY SUBHEAD
"<+0>Hiii<+0>LINE<BR>1<+0>"
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT, HEADALIGN=BODY, GRID=OFF,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=1, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=2, COLOR = RED, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=FIELD, ITEM=2, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
END
The Output comes something like below....
My Requirement is like Line and 1 should come in the same cell... One below other.... This is going to act as Column Title.
HEADALIGN=BODY, is the one that creates problem here....
any Clue on this ?
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009
For what you want, you need to use a template/macro to insert a formula into the cell that looks something like "Line" & Chr(10) & " 1" (basically, type into the formula bar "text" Alt/CR "text")
Basically a lot of work for a minor cosmetic issue.
Try this, though you will have to revise the style sheet:
-SET &ECHO=ALL;
-DEFAULT &OUTPUT = 'EXL2K';
DEFINE FILE CAR
LINE_BREAK/A11 = IF '&OUTPUT' EQ 'HTML' THEN 'LINE<br />1' ELSE 'LINE 1';
END
-RUN
TABLE FILE CAR
SUM
SEATS
BY COUNTRY
BY CAR
ON COUNTRY SUBHEAD
"<+0>Hiii<+0><LINE_BREAK><+0>"
ON TABLE PCHOLD FORMAT &OUTPUT
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
TYPE=REPORT, HEADALIGN=BODY, GRID=OFF,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=1, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=2, COLOR = RED, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=FIELD, ITEM=2, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
END
-RUN
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
One option is to use a background color to eliminate the grid in the SUBHEAD. This allows you to place the SUBHEAD on two or more lines. Just a thought ...
TABLE FILE CAR
SUM SEATS
BY COUNTRY
BY CAR
ON COUNTRY SUBHEAD
" <+0>LINE<+0> "
"Hiii<+0>1<+0>Biii"
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
TYPE=SUBHEAD, JUSTIFY=LEFT, SIZE=10, STYLE=BOLD, HEADALIGN=BODY, BACKCOLOR=LIGHT BLUE, $
TYPE=SUBHEAD, OBJECT=TEXT, ITEM=2, COLOR=RED, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
How about going back to the traditional way of breaking a line.
</n>
TABLE FILE CAR
SUM SEATS
BY COUNTRY BY CAR
ON COUNTRY SUBHEAD
"Hiii</1>LINE</1>"
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT, HEADALIGN=BODY, GRID=OFF,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=1, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=2, COLOR = RED, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=FIELD, ITEM=2, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
END
You can do it within a define but you have to use your knowledge of the output format and deal accordingly.
-DEFAULT &WFFMT = 'EXL2K'
DEFINE FILE CAR
vbcrlf/A6 = IF &WFFMT EQ 'EXL2K THEN HEXBYT(13,'A1')||HEXBYT(10,'A1') ELSE '<br />';
MULTIHEAD/A30 = 'LINE'||vbcrlf||'1';
END
TABLE FILE CAR
SUM SEATS
BY COUNTRY BY CAR
ON COUNTRY SUBHEAD
"<+0>Hiii<+0><MULTIHEAD<+0>"
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
TYPE=REPORT, HEADALIGN=BODY, GRID=OFF, $
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=1, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=2, COLOR = RED, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=FIELD, ITEM=2, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$
END
As your example specifies EXL2K I have used the line breaking used within MS Excel which is carriage return line feed characters, but if this was purely for HTML then I would have to use Gamp's suggestion.
One reason why complete description of your problem is paramount.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
-DEFAULT &WFFMT = 'EXL2K' DEFINE FILE CAR vbcrlf/A6 = IF &WFFMT EQ 'EXL2K THEN HEXBYT(13,'A1')||HEXBYT(10,'A1') ELSE ' '; MULTIHEAD/A30 = 'LINE'||vbcrlf||'1'; END TABLE FILE CAR SUM SEATS BY COUNTRY BY CAR ON COUNTRY SUBHEAD "<+0>Hiii<+0>" ON TABLE PCHOLD FORMAT &WFFMT ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ TYPE=REPORT, HEADALIGN=BODY, GRID=OFF, $ TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=1, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$ TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=TEXT, ITEM=2, COLOR = RED, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$ TYPE=SUBHEAD, BY=COUNTRY, LINE=1, OBJECT=FIELD, ITEM=2, JUSTIFY=LEFT, SIZE=10, COLSPAN=1,STYLE=BOLD,$ END
Your Tip Rocked Tony....
Really helped it....
Thank you...
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009