Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to get the output to look like this?
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] How to get the output to look like this?
 Login/Join
 
Gold member
posted
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
 
Posts: 55 | Registered: September 08, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
you could put all your data (text labels and fields) in your HEADING or SUBHEADING lines.


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
 
Posts: 2987 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
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
 
Posts: 398 | Registered: February 04, 2008Reply With QuoteReport This Post
Expert
posted Hide Post
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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6105 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 55 | Registered: September 08, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
...
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 55 | Registered: September 08, 2010Reply With QuoteReport This Post
Guru
posted Hide Post
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
 
Posts: 398 | Registered: February 04, 2008Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to get the output to look like this?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.