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 All, I have a report where I need to show multiple columns one below the other and their alignment should be proper. I have written the code using CAR. In that report some of the report values gets wrapped some or not. I would like to know why the wrapping is not consistent within a report.Let me know if I have made any mistake in that report.
If you execute the below code u can see that "W Germany" gets wrapped while the other values at the top of the report gets cut off. I dont know why is it happening although i have applied wrap to the field as a whole.
here goes the code using car:
DEFINE FILE CAR COMBI/A500=COUNTRY||CAR||MODEL||BODYTYPE ; END
TABLE FILE CAR PRINT COMPUTE C3/A3=' '; AS '' COMPUTE C3/A3=' '; AS '' COMPUTE C3/A3=' '; AS '' COMPUTE C3/A3=' '; AS '' BY COMBI NOPRINT
HEADING "COL1<+0>COL2" ON COMBI SUBHEAD " test" " test"
ON TABLE SET PAGE-NUM OFF ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE *
Hm, my settings seem to result in all columns wrapping ... also using your code this happens. And I ran it with the same webfocus release you indicated in your post - 762. And actually that makes sense, because for every part you specify a WRAP=, so it should wrap and not truncate. At this moment I don't know what causes the truncate in your case.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Try this code. /* SET PRINTPLUS=ON; DEFINE FILE CAR COMBI/A500=COUNTRY||CAR||MODEL||BODYTYPE ; END TABLE FILE CAR PRINT COMPUTE C3/A3=' '; AS '' COMPUTE C3/A3=' '; AS '' COMPUTE C3/A3=' '; AS '' COMPUTE C3/A3=' '; AS '' BY COMBI NOPRINT HEADING "COL1<+0> COL2" ON COMBI SUBHEAD " test" " test" ON TABLE SET PAGE-NUM OFF ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=HEADING, LINE=1,ITEM=1, OBJECT=TEXT, JUSTIFY=LEFT,WRAP=1.0, $ TYPE=HEADING, LINE=1,ITEM=2, JUSTIFY=LEFT,WRAP=1.0, $ TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=1,OBJECT=FIELD,JUSTIFY=LEFT,WRAP=1.0, $ TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=2, OBJECT=FIELD, JUSTIFY=LEFT,WRAP=1.0, $ TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=1, OBJECT=FIELD, JUSTIFY=LEFT,WRAP=1.0,$ TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=2, OBJECT=FIELD, JUSTIFY=LEFT,WRAP=1.0,$ TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=3, JUSTIFY=LEFT,WRAP=1.0, $ TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=3, JUSTIFY=LEFT,WRAP=1.0,$ ENDSTYLE END /*
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
sm: With the code below I get wrapping on all the fields imbedded in the subhead.
SET PRINTPLUS=ON
DEFINE FILE CAR
COMBI/A65=COUNTRY||'.'||CAR||'.'||MODEL||'.'||BODYTYPE ;
END
TABLE FILE CAR
WRITE COMBI AS 'COMBI-1'
BY COMBI AS 'COMBI-2' FOLD-LINE NOSPLIT
ON COMBI SUBHEAD
"<COUNTRY><+0><MODEL>"
"<CAR><+0><BODYTYPE>"
" "
ON COMBI SUBFOOT
"-----------------------------------------------------------"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=1,OBJECT=FIELD,JUSTIFY=LEFT,WRAP=0.5,COLOR= RED,$
TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=2,OBJECT=FIELD,JUSTIFY=LEFT,WRAP=0.5,COLOR= BLUE,$
TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=1,OBJECT=FIELD,JUSTIFY=LEFT,WRAP=0.5,COLOR= GREEN,$
TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=2,OBJECT=FIELD,JUSTIFY=LEFT,WRAP=0.5,COLOR=FIREBRICK,$
ENDSTYLE
END
Note that W Germany breaks 'cleanly' on the space in position 2; whereas england has no place to break other than in in midword, given that WRAP=0.5 leaves room for only 5 characters. Similarly for ALFA ROMEO and JAGUAR.
I think your original code had reference problems: since your subhead
included a space after the <+0>, that space became the #2 object in each line, and the tags to embed Model in line 1 and Bodytype in line 2 became #3, for which you did not specify wrapping..
In my code's output there is an oddity, apparently reflecting a bug in WF: Page 1 is fine, but starting with page 2 I get duplication of data: On page 2, Model is rendered twice in the first subhead line -- first properly (with wrapping and in the specified color), and following that it is repeated -- with the wrong color (matching the first field's style) and without wrapping. On pages 3 and 4, the same thing happens, but to line two.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Hi JG and Rsquared, I tried the code you have given, but still i could see wrapping not appearing properly(consistently).
For JG's code:
I could see the wrapping of first row in page1, but 2nd,3rd ,4th row i.e jaguar and jense,england getting cut off in page1 itself. I dont know why it is inconsistent , forsome rows wrapping happens for some not. Please help me.
SET PRINTPLUS=ON;
DEFINE FILE CAR
COMBI/A500=COUNTRY||CAR||MODEL||BODYTYPE ;
END
TABLE FILE CAR
PRINT
COMPUTE C3/A3=' '; AS ''
COMPUTE C3/A3=' '; AS ''
COMPUTE C3/A3=' '; AS ''
COMPUTE C3/A3=' '; AS ''
BY COMBI NOPRINT
HEADING
"COL1<+0>COL2"
ON COMBI SUBHEAD
"<COUNTRY<+0> <MODEL<+0> test"
"<CAR<+0> <BODYTYPE<+0> test"
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1,ITEM=1, OBJECT=TEXT, POSITION=P1, JUSTIFY=RIGHT,WRAP=1, $
TYPE=HEADING, LINE=1,ITEM=2, POSITION=P3,JUSTIFY=RIGHT,WRAP=1, $
TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=1,OBJECT=FIELD,JUSTIFY=RIGHT,WRAP=0.5, $
TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=2,OBJECT=FIELD, JUSTIFY=RIGHT,WRAP=0.5,$
TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=1, OBJECT=FIELD, JUSTIFY=RIGHT,WRAP=0.5, $
TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=2, OBJECT=FIELD, JUSTIFY=RIGHT,WRAP=0.5,$
TYPE=SUBHEAD, BY=COMBI,LINE=1,ITEM=3, JUSTIFY=RIGHT,WRAP=0.5, $
TYPE=SUBHEAD, BY=COMBI,LINE=2,ITEM=3, JUSTIFY=RIGHT,WRAP=0.5,$
ENDSTYLE
END
JG,
Are the tags OK now ?
RR
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
Hi JG, I work with 7.1.4 now. The issue I am facing is in 7.1.4 version.
It is not that we are trying to fit a meter into a yard. We have many columns to be shown in a single report and we can only increase the width of a column to an extent.
we cannot have a report to show only one column in each and increase the width so that the data fits properly. Also if wrapping functionality is available with WF it should be applying the style consistently and not like the screen shots shown above.
The users cannot compromise on the font size like 1 or 2 so that we can show a huge description.
Every software has bugs, IBI is just like everyone else.
Try testing in you 7.6.2 environment and see if it is resolved there. I suspect is.
Then you have 2 options, either upgrade or open a case with IBI to see if they will back port the fix. 7.1.4 is currently on hotfix 22 and the issue is not reported as being fixed.