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.
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, 2007
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, 2007