Focal Point
[SOLVED] PAGEMATRIX IN HTML FORMAT

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

October 05, 2011, 10:10 AM
Deepu
[SOLVED] PAGEMATRIX IN HTML FORMAT
quote:
Originally posted by Deepu:
Hi

I have a pagematrix code in pdf like this
i'm getting output correct only

can any one help me how to do pagematrix in HTML

and one more in pdf output i'm getting output format lable like this

1Lab 6Lab 11Lab
2Lab 7Lab 12Lab
3Lab 8Lab 13Lab
4Lab 9Lab
5Lab 10Lab

i want output report format label like this
1Lab 2Lab 3Lab
4Lab 5Lab 6Lab
7Lab 8Lab 9Lab
10Lab 11Lab 12Lab
13Lab
SET ONLINE-FMT = PDF
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, LEFTMARGIN=0.256, TOPMARGIN=0.5,
PAGEMATRIX=(3 5), ELEMENT=(2.3 1), GUTTER=(0.188 0), $
ENDSTYLE
END
  

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


WebFOCUS 7.6
Windows, All Outputs
October 05, 2011, 04:48 PM
Waz
Please post your code between the code tags.


I would suggest creating a key to force the sort to the way you want it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

October 05, 2011, 11:19 PM
Mika Keranen
Hi,

For PDF label order, try adding MATRIXORDER=HORIZONTAL in stylesheet (VERTICAL is the default).

As Waz said, for HTML pagematrix you might need to create sortfield(s) to make the report appear the way you want.

Cheers,
Mika


WebFOCUS 7.6.x
PMF 5.2.x
October 06, 2011, 04:11 AM
Danny-SRL
Here is an old solution. It still works.

For row labels:
  
-SET &COL=3;
TABLE FILE CAR
LIST MPG
ON TABLE HOLD
END
-RUN
DEFINE FILE HOLD
RR/I5=(LIST - 1) / &COL;
CC/I5=LIST - 1 - RR*&COL;
END
TABLE FILE HOLD
SUM MPG
BY RR NOPRINT
ACROSS CC NOPRINT
END


For column labels:
TABLE FILE CAR
LIST MPG
ON TABLE HOLD
END
-RUN
-SET &NN=&LINES;
-SET &COL=3;
-SET &ROW=&NN / &COL;

DEFINE FILE HOLD
CC/I5=(LIST - 1) / &ROW;
RR/I5=LIST - 1 - CC*&ROW;
END
TABLE FILE HOLD
SUM MPG
BY RR NOPRINT
ACROSS CC NOPRINT
END



Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

October 06, 2011, 01:42 PM
Deepu
quote:
Originally posted by Waz:
Please post your code between the code tags.


I would suggest creating a key to force the sort to the way you want it.


  

SET ONLINE-FMT = PDF
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
-*ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, LEFTMARGIN=0.256, TOPMARGIN=0.5,
PAGEMATRIX=(3 5), ELEMENT=(2.3 1), GUTTER=(0.188 0), $
ENDSTYLE
END


Like this i want to genrate output in HTML Format 


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


WebFOCUS 7.6
Windows, All Outputs