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.
My goal, for purposes of easy maintenance, is to create several text variables and then concatenate them, and wrap the result prior to displaying in a PDF report. My test code is below. It appears it individually warps each of the variables across the page which is not what I want. I want the result to be wrapped as if a single string of text. As a side note, I also want to be able to style SENTENCE2 as BOLD and still get the concatenation and wrapping I desire. Any clues?
Thanks, George
ATTTEMPT 1 ----------
DEFINE FILE EMPLOYEE SENTENCE1/A1000='The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. '; SENTENCE2/A1000='The grass is green. The grass is green. The grass is green. '; SENTENCE3/A1000='The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. '; END
TABLE FILE EMPLOYEE BY LAST_NAME NOPRINT ON TABLE SUBFOOT " ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=10, JUSTIFY=LEFT, $ TYPE=TABFOOTING, LINE=1, OBJECT=FIELD, JUSTIFY=LEFT, WRAP=6.5, $ ENDSTYLE
END
ATTEMPT 2 --------- This gets me closer but left margin is off and no BOLDing.
DEFINE FILE EMPLOYEE SENTENCE1/A1000='The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. <+0> The grass is green. The grass is green. The grass is green.<+0> The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. '; END
TABLE FILE EMPLOYEE BY LAST_NAME NOPRINT ON TABLE SUBFOOT " ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=10, JUSTIFY=LEFT, $ TYPE=TABFOOTING, LINE=1, WRAP=6.5, $ TYPE=TABFOOTING, LINE=1, ITEM=1, OBJECT=FIELD, $ TYPE=TABFOOTING, LINE=1, ITEM=2, OBJECT=FIELD, STYLE=BOLD, $ TYPE=TABFOOTING, LINE=1, ITEM=3, OBJECT=FIELD, $
ENDSTYLE ENDThis message has been edited. Last edited by: Kerry,
DEFINE FILE EMPLOYEE
SENTENCE1/A1000V = 'The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. ';
SENTENCE2/A1000V = 'The grass is green. The grass is green. The grass is green. ';
SENTENCE3/A1000V = 'The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. ';
SENTENCEX/A3000V = SENTENCE1 | SENTENCE2 | SENTENCE3 ;
END
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
WHERE RECORDLIMIT EQ 1;
ON TABLE SUBFOOT
"<SENTENCEX"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=10, JUSTIFY=LEFT, $
TYPE=TABFOOTING, OBJECT=FIELD, JUSTIFY=LEFT, WRAP=6.5, STYLE=BOLD, $
ENDSTYLE
END
This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Sorry that I can't help on this. It's incommplete code. Please fill in the blanks and post if between the "code tags". The red </> set of tags shown above.
ON TABLE SUBFOOT
" ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
SET PAGE = OFF
DEFINE FILE EMPLOYEE
SENTENCE1/A1000V = 'The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. ';
SENTENCE2/A1000V = 'The grass is green. The grass is green. The grass is green. ';
SENTENCE3/A1000V = 'The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. ';
SENTENCEX/A3000V = SENTENCE1 | SENTENCE2 | SENTENCE3 ;
END
TABLE FILE EMPLOYEE
PRINT
SENTENCE1 AS '' OVER
SENTENCE2 AS '' OVER
SENTENCE3 AS ''
BY LAST_NAME NOPRINT
WHERE RECORDLIMIT EQ 1;
-* ON TABLE SUBFOOT
-* "<SENTENCE1 </1>"
-* "<SENTENCE2 </1>"
-* "<SENTENCE3 </1>"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
LEFTMARGIN=.75, RIGHTMARGIN=.75,$
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=10, JUSTIFY=LEFT, WRAP=7.0,$
-* TYPE=TABFOOTING, OBJECT=FIELD, JUSTIFY=LEFT, WRAP=6.5, STYLE=BOLD, $
TYPE = DATA, COLUMN=SENTENCE2, COLOR=BLUE,$
ENDSTYLE
END
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I've tried this and it appears it may be my only solution. Not to be picky, the only issue with solution is that each line appears to end with a carriage return so the 3 lines are not concatenated as a paragraph which I prefer. I'll play around with your solution and maybe I can make that happen. Maybe I'm stretching the limitations of the tool.
Thanks again for your quick response and simple solution, George