Focal Point
[SOLVED] 3 column report

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

June 02, 2009, 09:41 AM
baxj89
[SOLVED] 3 column report
I am searching for code examples for producing three coulmn report. I need to produces a printable pdf in three columns eight records per column sorted by region then by county.
Any and all examples would be appreciated

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


Developers Studio 7.6.5
June 02, 2009, 09:46 AM
Francis Mariani
Look for this documentation: Creating Reports With WebFOCUS Language > Laying Out the Report Page > Working With Mailing Labels and Multi-Pane Pages. You can use this technique to create a matrix of 3 x 8.


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
June 02, 2009, 10:28 AM
baxj89
I have reviewed the code for this and it does part of what I want. I need to group by Region then by county. But I only want to display the county on the first record of each group. Every time it try to add the new by field it adds to the bottom of the label and I am not sure how to suppress the county name on the rest of the records.


Developers Studio 7.6.5
June 03, 2009, 04:02 AM
GamP
Your request is a little bit too cryptic for me to understand.
Could you please clarify this a bit with examples of the desired output?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
June 03, 2009, 08:51 AM
baxj89
Is there a way to send an attachment?

I can send an example of what I am trying to achieve.


Developers Studio 7.6.5
June 03, 2009, 11:15 AM
Francis Mariani
As you say, the matrix syntax will only do some of what you require. It will take a little bit of convoluted code to display the county on only the first group.

I would add BY statements with NOPRINT and COMPUTE the county to be blank or the actual value, depending on the row number, which would also have to be COMPUTEd. As I said, convoluted.

If you can create and post code using one of the IBI-supplied sample files (CAR, GGORDER, etc), maybe we can help you further.


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
June 03, 2009, 04:18 PM
Doug
quote:
I can send an example of what I am trying to achieve.
Please do send a sample. In the mean time is THIS what you are attempting to achieve? If so, "PAGEMATRIX=(a b), ELEMENT=(c d), GUTTER=(e f)" will do the trick. Where a-f are the values you need for the desired layout. NOTE that this sample is using the 18 models from the car file so I used 3 and 6 for the PAGEMATRIX values. I DEFINEd the region just for illustrative purposes and COMPUTEd the FIRSTCOUNTRY to display either a blank or the value of the curretn COUNTRY based on LAST COUNTRY.

I hope this helps...
June 03, 2009, 04:29 PM
baxj89
This is very close to what I need. How do I suppress the region name. I only want to see REGION I on the first record and so for the reset of the Regions.


Developers Studio 7.6.5
June 03, 2009, 05:00 PM
Doug
You can COMPUTE another field as follows:
COMPUTE REGIONNAME/A10 = IF REGION EQ LAST REGION THEN '' ELSE REGION ; NOPRINT
and use REGIONNAME instead, to get this. I hope this helps.
June 05, 2009, 12:59 PM
baxj89
Thanks that did the trick.


Developers Studio 7.6.5