Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Align Fields in Reports

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Align Fields in Reports
 Login/Join
 
Silver Member
posted
Is there a way to align fields vertically?

I am creating a fex file and my requirement is as follows:

Field1 Field3 Field4
Field2 Field5


Field6 Field7 Field8 ...........

Thanks,
SG.
 
Posts: 32 | Location: memphis,tn | Registered: January 25, 2007Report This Post
Platinum Member
posted Hide Post
Try using over

TABLE FILE FILENAME
PRINT Field1 Field3 Field4
OVER Field2 Field5
OVER Field6 Field7 Field8
END

Good luck

et


FOCUS 7.6 MVS PDF,HTML,EXCEL
 
Posts: 115 | Location: Chicago, IL | Registered: May 28, 2004Report This Post
Silver Member
posted Hide Post
Hi ET,
works great but the alignment is not what I want.
Everything is towards left. I want to place some fields to the right of the screen and some in the center and some to the left.

Thanks,
SG


Webfocus 7.6.8
PDF,HTML & EXCEL
 
Posts: 32 | Location: memphis,tn | Registered: January 25, 2007Report This Post
Platinum Member
posted Hide Post
You should be able to do the alignment in your stylesheet.
 
Posts: 140 | Location: Adelaide South Australia | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
Here's an example of utilising OVER in a grid type layout, as OPALTOSH said, using a style sheet to help.
  
SET LINES=999
DEFINE FILE CAR
DUMMY/A1 = ' ';
HR/A6='<HR>';
END
TABLE FILE CAR
PRINT
     COUNTRY      AS '' 
     DUMMY        AS '' 
     DUMMY        AS '' 
     DUMMY        AS '' OVER
     CAR          AS ''
     DEALER_COST  AS ''
     DUMMY        AS '' 
     DUMMY        AS '' OVER
     MODEL        AS ''
     RETAIL_COST  AS ''
     SALES        AS '' 
     DUMMY        AS '' 
BY   COUNTRY      NOPRINT
BY   CAR          NOPRINT
BY   MODEL NOPRINT
BY   SALES        NOPRINT
ON MODEL SUBFOOT
"<HR "
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=PTS,
     SQUEEZE=OFF,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
TYPE=REPORT,
COLUMN=P1,
WIDTH=30,
JUSTIFY=LEFT,
$
TYPE=REPORT,
COLUMN=P2,
WRAP=200,
JUSTIFY=RIGHT,
$
TYPE=REPORT,
COLUMN=P3,
WRAP=200,
JUSTIFY=RIGHT,
$
TYPE=REPORT,
COLUMN=P4,
WRAP=10,
$
TYPE=REPORT,
COLUMN=P9,
JUSTIFY=RIGHT,
$
ENDSTYLE
END

Basically, I set up a report with GRID=ON, and fill in empty matrix cells with a field DUMMY to ensure better alignment (not strictly necessary but it does seem to help). I set the width of the columns in the top row, using WIDTH or WRAP, whichever works better. There is an extra column on the end to ensure that the horizontal rule, the
<HR>
,goes further than almost the end of column 3. After complete, turn GRID=OFF.

Basically play with this code to get a feel for what you can do before turning your atttention to your real report.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Silver Member
posted Hide Post
Thanks All,
sg


Webfocus 7.6.8
PDF,HTML & EXCEL
 
Posts: 32 | Location: memphis,tn | Registered: January 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Align Fields in Reports

Copyright © 1996-2020 Information Builders