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.
Country Model Measure_A A x 100 y 150 z 30 B a 20 b 10 c 100
Now I want a border on all corresponding rows when I have a sort-break:
Country Model Measure_A -----------------------------| |A x 100 | | y 150 | | z 30 | -----------------------------| |B a 20 | | b 10 | | c 100 | -----------------------------|
The "-" and "|" ist intended to mark something like
<TR "border=1">
in HTML.
Unfortunately, I have no clue how to do this in WebFOCUS.
Any ideas are appreciated.
Kind regadrs,
StefanThis message has been edited. Last edited by: Stefan,
WF 7.6.9 PMF 5.1.3 BID 7.6.9
Win XP HTML, PDF, Excel, PowerPoint
Posts: 69 | Location: Germany | Registered: September 21, 2009
TABLE FILE CAR
PRINT
CAR
SALES
BY COUNTRY
ON COUNTRY UNDER-LINE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
END
Unfortunately, i think I was a little bit misunderstandable.
My original code looks like this:
TABLE FILE CAR
SUM
'CAR.BODY.SEATS'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.COMP.CAR'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
ENDSTYLE
END
I want a frame/border drawn in that way, that all cars beloging to a country have one specifif frame to visualize that they belong together.
This means one frame/ border for England, one for France etc...
When I use the code below, I get subtotals with a border on these subtotals. I'm loogink for a border around the whole group....
TABLE FILE CAR
SUM
'CAR.BODY.SEATS'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.COMP.CAR'
ON CAR.ORIGIN.COUNTRY SUBTOTAL AS '*TOTAL'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=SUBTOTAL,
BY=1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
$
ENDSTYLE
END
WF 7.6.9 PMF 5.1.3 BID 7.6.9
Win XP HTML, PDF, Excel, PowerPoint
Posts: 69 | Location: Germany | Registered: September 21, 2009
This code seems to work for both HTML and PDF output formats.
TABLE FILE CAR
PRINT CAR
SALES
BY COUNTRY
ON COUNTRY SUBFOOT
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=COUNTRY, BORDER-LEFT=LIGHT, $
TYPE=REPORT, COLUMN=SALES, BORDER-RIGHT=LIGHT, $
TYPE=SUBFOOT, SIZE=1, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT, $
TYPE=TITLE, BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, STYLE=-UNDERLINE, $
ENDSTYLE
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Here is another take on your problem. You can identify the sort groups by color:
TABLE FILE CAR
PRINT SALES
BY COUNTRY
BY CAR
BY MODEL
HEADING CENTER
"CAR SALES REPORT"
ON TABLE SET PAGE NOPAGE
ON TABLE SET STYLE *
TYPE=DATA, BACKCOLOR=(BY=COUNTRY SILVER PINK), $
TYPE=TITLE, STYLE=BOLD, BACKCOLOR='PINK', $
TYPE=HEADING, STYLE=BOLD, BACKCOLOR='SILVER', $
ENDSTYLE
END
The closest I could come to what I think you were looking for.
TABLE FILE CAR
SUM
SEATS
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS '*TOTAL'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
TYPE=TITLE,
-* COLUMN=N2,
BORDER-BOTTOM=LIGHT,
$
TYPE=DATA,
COLUMN=N1,
BORDER-TOP=OFF,
BORDER-LEFT=LIGHT,
$
TYPE=DATA,
COLUMN=N3,
BORDER-TOP=OFF,
BORDER-RIGHT=LIGHT,
$
-*TYPE=TITLE,
-* COLUMN=N1,
-*-* BORDER-TOP=LIGHT,
-* BORDER-LEFT=LIGHT,
-*$
-*TYPE=TITLE,
-* COLUMN=N3,
-*-* BORDER-TOP=LIGHT,
-* BORDER-RIGHT=LIGHT,
-*$
TYPE=SUBTOTAL,
BY=1,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
$
ENDSTYLE
END
WF 8.2.01M 8.2.01M Reporting Server Windows 2012 Srvr R2 PDF,Excel, HTML Graphs - a lot of graphs
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003
TABLE FILE CAR
SUM SEATS
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS '*TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=COUNTRY, BORDER-LEFT=LIGHT, $
TYPE=REPORT, COLUMN=SEATS, BORDER-RIGHT=LIGHT, $
TYPE=TITLE, BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, STYLE=-UNDERLINE, $
TYPE=SUBTOTAL, BORDER-BOTTOM=LIGHT, $
ENDSTYLE
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
A little workaround. There may be much simpler one than the below.
TABLE FILE CAR
SUM
SEATS
BY COUNTRY
BY CAR
ON TABLE HOLD
END
-RUN
-SET &LNS=&LINES;
TABLE FILE HOLD
SUM
SEATS
COMPUTE BDR_A/A1=IF COUNTRY EQ LAST COUNTRY THEN 'N' ELSE 'Y'; NOPRINT
COMPUTE CNTR_A/I2=CNTR+1; NOPRINT
BY COUNTRY
BY CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=COUNTRY, BORDER-LEFT=LIGHT, $
TYPE=REPORT, COLUMN=SEATS, BORDER-RIGHT=LIGHT, $
TYPE=TITLE, BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, STYLE=-UNDERLINE, $
TYPE=DATA, BORDER-TOP=LIGHT, WHEN=BDR_A EQ 'Y',$
TYPE=DATA, BORDER-BOTTOM=LIGHT, WHEN=CNTR_A EQ &LNS, $
ENDSTYLE
END
Colours? To avoid any further confusion, here is my first post again:
TABLE FILE CAR
PRINT CAR
SALES
BY COUNTRY
ON COUNTRY SUBFOOT
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=COUNTRY, BORDER-LEFT=LIGHT, $
TYPE=REPORT, COLUMN=SALES, BORDER-RIGHT=LIGHT, $
TYPE=SUBFOOT, SIZE=1, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT, $
TYPE=TITLE, BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, STYLE=-UNDERLINE, $
ENDSTYLE
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007