Focal Point
PDF WITH ACROSS ON 2 PAGES DOESN'T REPEAT SORT VALUE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6011062672

March 15, 2008, 11:55 AM
Cati - France
PDF WITH ACROSS ON 2 PAGES DOESN'T REPEAT SORT VALUE
Hello,

I have a pdf report with a across value = 12 months + row total.
On the first page, I can print from january to june and data for july to december are printed on the second page.
I want to repeat the sort values on the second page but It doesn't work.
How can I do that ?

Thanks for help.
Catherine


7.7.02 (Html, Excel, Ahtml, Pdf,Graph,.....)
OS400 V5R3, V5R4
Windows 2000/2003/2007/2010
March 15, 2008, 12:52 PM
FrankDutch
I'm not sure if there is a SET command to this, but what I should do is split the year into two half year's and use that as a by field.

DEFINE FILE XXX
HYEAR/I2=IF MONTH LE 6 THEN 1 ELSE 2;
(supposed the month is a number from 1-12)
END
TABLE FILE XXX
SUM SALES
BY HYEAR NOPRINT PAGE-BREAK
BY PRODTYPE
ACROSS MONTH
END


Or something like this...

It's maybe not exactly what you want, if you have in the first half year not all the products you can have less lines than in the second half year.
If you need a row-total, the result is also not what you want.

The other solution might be defining all months as unique fields

DEFINE FILE XXX
JAN/D12=IF MONTH EQ 1 THEN SALES ELSE 0;
FEB/D12=IF MONTH EQ 2 THEN SALES ELSE 0;
...
DEC/D12=IF MONTH EQ 12 THEN SALES ELSE 0;
(supposed the month is a number from 1-12)
END
TABLE FILE XXX
SUM JAN FEB MAR ...JUN PRODTYPE JUL ...DEC
BY PRODTYPE
END


Now you get the prodtype on the left and in the middle.
You have to play with the column with to get the second half of the year on an other page.

There must be a smarter solution.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

March 16, 2008, 04:25 AM
Cati - France
Thanks Frank, I vill try.


7.7.02 (Html, Excel, Ahtml, Pdf,Graph,.....)
OS400 V5R3, V5R4
Windows 2000/2003/2007/2010
March 17, 2008, 08:31 AM
mgrackin
Cati,

Look at the BYPANEL setting in the Developing Reporting Applications manual. This might be what you are looking for.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
March 17, 2008, 08:34 AM
mgrackin
Cati,

Run the following code for an example:

TABLE FILE EMPLOYEE
SUM SALARY ACROSS HIRE_DATE
BY DEPARTMENT
ON TABLE SET BYPANEL ON
ON TABLE PCHOLD FORMAT PDF
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011