Focal Point
[CLOSED] How to get the output to look like this?

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

October 05, 2010, 12:19 PM
Suzy
[CLOSED] How to get the output to look like this?
I have a report that I need to be formatted like this. I'm trying to use OVER. But the 3rd column is not lining up correctly. And I would like to bold the headings.

User Information (blank column) User Profiles
---------------------------------------------
User ID: userid userprofile
Last name: lname userprofile2
First name: fname userprofile3

User Preference (blank column) (blank column)
----------------------------------------------
Timezone: timezone (blank column)

Account Information (blank column)(blank column)
-----------------------------------------------
Type: type (blank column)

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


WebFOCUS 8.0.08
Solaris
HTML, PDF, XLS, CSV
October 05, 2010, 12:38 PM
Doug
you could put all your data (text labels and fields) in your HEADING or SUBHEADING lines.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
October 05, 2010, 02:21 PM
RSquared
Suzy,

Two things. First can you please include your code. Second, you can use the 'IN column' command to put your data where you want. If you want the Title and the Data to line up, you should cerate the titles using a Define and then use "AS ''" for the data.


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
October 05, 2010, 04:57 PM
Waz
Posting you example in the code tags will help seeing what you want.

User Information (blank column) User Profiles 
---------------------------------------------
User ID:          userid        userprofile
Last name:        lname         userprofile2
First name:       fname         userprofile3

User Preference  (blank column) (blank column)
----------------------------------------------
Timezone:        timezone       (blank column)

Account Information (blank column)(blank column)
-----------------------------------------------
Type:            type           (blank column)


I agree with RSquared, we need to see your code, and the layout of your data.

You may find it easier to do this with MacGyver, assuming all your data is in one row.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 05, 2010, 05:06 PM
Suzy
I've almost got this working the alignment is fine. My question is now how do I format the headings?

  
DEFINE FILE USERDETAIL
SPACE/A1 = ' ';
HEADING01/A20 = 'User Information';
HEADING02/A20 = 'User Profiles';
HEADING03/A20 = 'User Entitlements';
HEADING1/A20 = 'User Preference';
HEADING2/A21 = 'Account Configuration';
HEADING3/A20 = 'Account Information';
END


-* Print the Report
TABLE FILE USERDETAIL
PRINT
  HEADING01 AS ' ' SPACE AS ' ' HEADING02 AS ' ' HEADING03 AS ' ' OVER
  USER_ID AS 'User ID' USR_PROFILES AS ' ' ENTITLEMENTS AS ' ' OVER
  FNAME AS 'First Name' OVER
  LNAME AS 'Last Name' OVER
  MI AS 'MI' OVER
  ADDR1 AS 'Address Line 1' OVER
  ADDR11 AS 'Address Line 2' OVER
  CITY AS 'City' OVER
  STATE_PROVINCE AS 'State' OVER
  POSTAL_CODE AS 'Postal Code' OVER
  BUSINESS_EMAIL AS 'Business Email' OVER
  BUSINESS_PHONE AS 'Business Phone' OVER
  BUSINESS_FAX AS 'Business Fax' OVER
SPACE AS ' ' OVER
HEADING1 AS ' ' OVER
  LOCALE AS 'Locale:' OVER
  TIMEZONE AS 'TimeZone:' OVER
  HIERARCHY_FORMAT AS 'Hierachy Name Format' OVER
SPACE AS ' '  OVER
HEADING2 AS ' ' OVER
  BOARDING_HN AS 'Fusebox Hierarchy Node' OVER
  MPS_HN AS 'OCM/Acquiring Hierachy Node:' OVER
SPACE AS ' '  OVER
HEADING3 AS ' ' OVER
  ACCT_TYPE AS 'Account Type' OVER
  ACCT_CREATE_DT AS 'Account Creation Date' OVER
  USR_STATUS AS 'User Status' OVER  



WebFOCUS 8.0.08
Solaris
HTML, PDF, XLS, CSV
October 05, 2010, 05:12 PM
Francis Mariani
...
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=HEADING01, COLOR=NAVY, STYLE=BOLD, $
TYPE=DATA, COLUMN=HEADING02, COLOR=NAVY, STYLE=BOLD, $
TYPE=DATA, COLUMN=HEADING03, COLOR=NAVY, STYLE=BOLD, $
...
ENDSTYLE
...



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 05, 2010, 05:36 PM
Suzy
That doesn't seem to work well with this already defined. The headings aren't getting formatted at all.
  
TYPE=DATA,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR='WHITE',
     BORDER-BOTTOM-COLOR='WHITE',
     BORDER-LEFT-COLOR='WHITE',
     BORDER-RIGHT-COLOR='WHITE',
     SIZE=7,
     BACKCOLOR=( 'WHITE' RGB(234 235 236) ),
  
$
TYPE=TITLE,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR='WHITE',
     BORDER-BOTTOM-COLOR='WHITE',
     BORDER-LEFT-COLOR='WHITE',
     BORDER-RIGHT-COLOR='WHITE',
     SIZE=7,
     BACKCOLOR=RGB(202 220 238),
     STYLE=-UNDERLINE+BOLD,
     JUSTIFY=CENTER,
$
TYPE=DATA, 
	 COLUMN=HEADING01, 
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=DATA, 
	COLUMN=HEADING02, 
	STYLE=BOLD, 
$
TYPE=DATA, 
	COLUMN=HEADING03, 
	STYLE=BOLD, 
$



WebFOCUS 8.0.08
Solaris
HTML, PDF, XLS, CSV
October 06, 2010, 10:50 AM
RSquared
Try this.
HEADING1 AS '' IN 0
HEADING2 AS '' IN 20
HEADING3 AS '' IN 40 OVER
USER_ID AS 'User id' IN 0 USER_PROFILE AS '' IN 20
.
.
.


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit