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 want to wrap line1, object=field item=1 in the subhead. The other items in the subhead ar placed using 'POSITION'. It won't wrap! Here is my code:
SET PRINTPLUS=ON
DEFINE FILE CAR
NEW_CAR/A50V WITH CAR = '12345678901234567890123456789012345678901234567890';
HEADTEXT/A15 WITH CAR = '123465789012345';
CURR_DATE/MDYY WITH CAR = &MDYY;
END
TABLE FILE CAR
SUM
CNT.MODEL
BY COUNTRY NOPRINT PAGE-BREAK
BY CAR
ON COUNTRY SUBHEAD
"<NEW_CAR><+0>HEADTEXT <+0><COUNTRY><+0>DATE CURR: <CURR_DATE>"
HEADING
"CAR SUBHEAD WRAP TEST"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET BYDISPLAY ON
ON TABLE SET LINES 61
ON TABLE SET NODATA ''
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.500000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
STYLE=NORMAL,
$
TYPE=DATA,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
STYLE=NORMAL,
$
TYPE=TITLE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='ARIAL',
SIZE=10,
BACKCOLOR=RGB(255 255 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=HEADING,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
SIZE=14,
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
SIZE=10,
STYLE=BOLD,
JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
BY=COUNTRY,
STYLE=BOLD,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=1,
WRAP=3,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=2,
JUSTIFY=LEFT,
POSITION=+.0125,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=3,
JUSTIFY=RIGHT,
POSITION=+.0125,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=4,
JUSTIFY=RIGHT,
POSITION=+.0125,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=TEXT,
ITEM=2,
STYLE=NORMAL,
JUSTIFY=LEFT,
POSITION=3.275,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=TEXT,
ITEM=4,
STYLE=NORMAL,
JUSTIFY=RIGHT,
POSITION=5.125,
$
ENDSTYLE
END
-RUN
-*
The other text in the heading MUST stay where it is. I just want the one field to wrap. Any help would be really appreciated. (My head hurts from banging it into the wall!) Thanks in advance! MarilynThis message has been edited. Last edited by: mpbMDE,
I fiddled a bit with your code. Notice that for the SUBHEAD, I added HEADALIGN=INTERNAL and it seems to do the trick. I also changed your WRAP=3 to WRAP=2, so that there shouldn't be an overlap.
-* File Marilyn01.fex
SET PRINTPLUS=ON
DEFINE FILE CAR
NEW_CAR/A50V WITH CAR = '12345678901234567890123456789012345678901234567890';
HEADTEXT/A15 WITH CAR = '123465789012345';
CURR_DATE/MDYY WITH CAR = &MDYY;
END
TABLE FILE CAR
SUM
CNT.MODEL
BY COUNTRY NOPRINT PAGE-BREAK
BY CAR
ON COUNTRY SUBHEAD
"<NEW_CAR><+0><HEADTEXT><+0><COUNTRY><+0>DATE CURR: <CURR_DATE>"
HEADING
"CAR SUBHEAD WRAP TEST"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET BYDISPLAY ON
ON TABLE SET LINES 61
ON TABLE SET NODATA ''
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.500000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
STYLE=NORMAL,
$
TYPE=DATA,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
STYLE=NORMAL,
$
TYPE=TITLE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='ARIAL',
SIZE=10,
BACKCOLOR=RGB(255 255 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=HEADING,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
SIZE=14,
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
HEADALIGN=INTERNAL,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
SIZE=10,
STYLE=BOLD,
JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
BY=COUNTRY,
STYLE=BOLD,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=1,
WRAP=2,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=2,
JUSTIFY=LEFT,
POSITION=+.0125,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=3,
JUSTIFY=RIGHT,
POSITION=+.125,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=FIELD,
ITEM=4,
JUSTIFY=RIGHT,
POSITION=+.0125,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=TEXT,
ITEM=2,
STYLE=NORMAL,
JUSTIFY=LEFT,
POSITION=3.275,
$
TYPE=SUBHEAD,
BY=COUNTRY,
LINE=1,
OBJECT=TEXT,
ITEM=4,
STYLE=NORMAL,
JUSTIFY=RIGHT,
POSITION=5.125,
$
ENDSTYLE
END
Good luck!
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Thank you, Daniel! There must be a difference between your 7.7 and my7.6.11. The code did not work for me. I did discover, however, that if I make the fields "NEW_CAR" into A50, rather than A50V, it does wrap.