I am facing one issue with the across report.I want to display year of Report in the intersection area of BY columns and across columns.Basically in the left upper corner side of the report containing both ACROSS AND BY Columns, nothing is written. The Space remains blank. I want to write year there itself. But not able to do that. Could you guys pleaase help me in this regard.
I have tried a lot with page heading and report heading options and Style.But could not succeed. Thanking You in advance.
Mayank AgrawalThis message has been edited. Last edited by: Kerry,
7.6.11, Windows Excel, HTML,PDF
October 20, 2011, 10:40 AM
Francis Mariani
Can't do it. You cannot put anything in that area. The only thing you can do is to create a HOLD file with the ACROSS statement and then report from the HOLD file without the ACROSS, but this is all too much work to just put some text in that specific area.
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
October 20, 2011, 02:17 PM
Dan Satchell
Depending on your requirements and data structure, you might try something like this:
TABLE FILE CAR
SUM COUNTRY AS '&DATEYY'
OVER SALES
OVER SEATS
OVER DCOST
ACROSS COUNTRY NOPRINT
ON TABLE SET STYLE *
TYPE=TITLE, STYLE=BOLD, COLUMN=COUNTRY, BACKCOLOR=PALE GREEN, $
ENDSTYLE
END
WebFOCUS 7.7.05
October 21, 2011, 02:30 AM
Mayank Agrawal
Hi Dan Satchell, thanks for your help. But I have one doubt. Is it possible to include any BY clause along with OVER in the code written by you. Basically, I want seat ,sales and Dcost as three different columns not as three rows. And 2011 above those three columns. Thanking You.
Mayank Agrawal
7.6.11, Windows Excel, HTML,PDF
October 21, 2011, 12:54 PM
Mary Watermann
Mayank,
Is this what you are looking for?
DEFINE FILE CAR
YR/A4 = '&DATEYY';
END
TABLE FILE CAR
SUM
SALES
SEATS
DCOST
ACROSS YR AS ''
-*
ON TABLE SET STYLE *
TYPE=TITLE, STYLE=BOLD, COLUMN=YR, BACKCOLOR=PALE GREEN, $
TYPE=ACROSSVALUE, JUSTIFY=CENTER, $
ENDSTYLE
END
2011
SALES SEATS DEALER_COST
208420 70 143,794
WF 7.6.10, Windows, PDF, Excel
October 21, 2011, 01:04 PM
njsden
Mary, that's a rather nice and simple solution.
Year won't go exactly "in the intersection area of BY columns and across columns" but that's the best that can be achieved with WebFOCUS unless WF 8 has some nice cards up the sleeve to surprise us all.