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.
In some of my FEXes, I have a defined field that can be, say, 20 characters if one value is chosen, or if a different value is chosen, it can then be 27 characters and so on. I use this defined field in a report tile, but when I try to center it, the shorter field does not look centered, due to having extra characters that are blank.
Is there a way to redefine the field to be exactly the length of the value that gets chosen, so that it looks "nice" and centered when used in a title of a report?
Thanks in advance.... looking forward to hearing from you.This message has been edited. Last edited by: Kerry,
This is going to depend upon a couple of different things. What is your output type? If it's HTML, HTML squishes all blanks into a single blank so that may explain why your heading does not appear correctly. Try it in PDf format. Also, it makes a difference whether you have "<FIELDNAME" or "<FIELDNAME>" (with the closing carat.) The end carat preserves trailing spaces so the position of the heading would not vary in it's starting position, but would not look centered. leaving off the end carat should always center the field exactly. If there are other items on the same line you wish to center, you're probably out of luck because WF does not allow you to center only a specific item in a line. Also, if you're using spot markers for placement of a field in a heading, that wil override the justify=center in the stylesheet.
Here's an example of something that works:
-* File car.fex
TABLE FILE CAR
PRINT CAR MODEL RCOST DCOST SEATS
BY COUNTRY
HEADING
"<COUNTRY"
"1234567890"
" "
ON COUNTRY PAGE-BREAK
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=HEADING, JUSTIFY=CENTER,$
ENDSTYLE
END
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
To all who replied, thank you. Arglen looks like the best way to go. The reply suggesting ideas for HTML and PDF would not work, since I am using Mainframe FOCUS Release 7.1, which can not deal with HTML or PDF nicely.