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.
I went into the following situation ( example here is with the CAR file ):
DEFINE FILE CAR
TEMP/D8.1S- = -WIDTH;
END
-RUN
TABLE FILE CAR
PRINT
WIDTH
TEMP
ON TABLE PCHOLD AS SOMEPDF FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='A4',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
FONT='COURIER NEW',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=BOLD,
LEFTGAP=0.00001,
RIGHTGAP=0.00001,
$
TYPE=DATA,
SIZE=6,
BACKCOLOR=( RGB(234 234 255) 'WHITE' ),
$
TYPE=REPORT,
COLUMN = WIDTH,
SQUEEZE = 4,
COLOR = RED,
$
COLUMN = TEMP,
SQUEEZE = 2,
COLOR = RED,
-* JUSTIFY = CENTER,
$
ENDSTYLE
END
-RUN
-EXIT
Problem is with the TEMP field - when I use squeeze on it ( without justify ) the field disappears. I want it to be justified right but when I use JUSTIFY = RIGHT , the field disappears again. The only way TEMP field is printed is by not using squeeze or using JUSTIFY = CENTER. Why is this happening and how can I fix it ? ( I want the TEMP field justified right but without converting it to alphanumeric - that will do the job but I do not want to convert it.) Thanks in advance .This message has been edited. Last edited by: Kerry,
I'd say it's a bug - it only occurs if your column definition contains a negative sign, as in D8.1S-. If you use D8.1S the style-sheet declaration works.
If you explain what you are attempting to achieve, perhaps we can help. Why are you using SQUEEZE on a numeric column? Wouldn't LEFTGAP on the column do the same thing?
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
The SQUEEZE function is for reducing the needed space in a alpha string field to the available space.
Suppose you have a field with size A20 and that holds the names of you customers, but you have not enough space in the report you can squeeze the space to less than the needed A20. Now it displays only the first say 10 characters. What you will see is something like
Francis - tried with leftgap / rightgap but it is not showing again. Anyway the problem is solved converting it to an alphanumeric field. Thanks. Frank - I've always used squeeze not only with alphanumeric but even with numeric and all sorts of fields ( yymd e.g.) and it works. But this is the first I encounter this problem. If it is a bug - I would have it in mind. Thanks a lot guys .