Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Wrap & variable text in Heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Wrap & variable text in Heading
 Login/Join
 
Platinum Member
posted
No matter what I try, I can't get the text stored in an amper variable that is displayed in HEADING to wrap. I have tried the following with no effect on the report. What other options can I try to get this text in a heading to wrap?

TYPE=REPORT, WRAP=2.5,$
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, WRAP=2.5,$

This message has been edited. Last edited by: Kerry,
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Virtuoso
posted Hide Post
I don't believe you can wrap actual text in a heading - the appearance of text would be something that you would normally control yourself. Try converting that &var value into a computed field and insert that field into the heading. I know WRAP does work for fields within a heading.


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, 2007Report This Post
Expert
posted Hide Post
An answer is here: WRAP HEADING In PDF???


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
I used a DEFINE for the variable and then called it in the HEADING. That worked great. Thanks.

DEFINE FILE HELPPAGE
D_DESCRIPTION/A1000 = '&&reportDescription';
END

HEADING
"
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=8, WRAP=7.5, $
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Expert
posted Hide Post
Laurie, try this out.

-SET &TEXT = 'This is my long piece of text that needs to be wrapped.' ;

DEFINE FILE CAR
 MyText/A100 = '&TEXT' ;
END
TABLE FILE CAR
HEADING
"<MyText "
PRINT COUNTRY

ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=FIELD, WRAP=1, $
ENDSTYLE
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
This worked great, thanks.
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Guru
posted Hide Post
Why can't I get this to work????? I made a define field and used that field in the heading instead of the amp var.....

DEFINE FILE PEOPLE_DIM
HireDateOut/MtDYY=HDATE(PEOPLE_DIM.PEOPLE_DIM.FIRST_HIRE_DATE, 'YYMD');
MULTI_CODES/A150 = '&CLASSCODE';
END
TABLE FILE PEOPLE_DIM
SUM 
     'PEOPLE_DIM.PEOPLE_DIM.HireDateOut' AS 'Hire,Date'
     'J0.PEOPLE_EMPLOYMENT_HISTORY_DIM.BENEFIT_CODE' AS 'Benefit,Code'
     COMPUTE TOTEMPS/D5C = TOTEMPS + 1; NOPRINT
     'J0.PEOPLE_EMPLOYMENT_HISTORY_DIM.EMPLOYEE_ECLS_DESC' NOPRINT
BY 'PEOPLE_DIM.PEOPLE_DIM.LCLastName' NOPRINT
BY 'PEOPLE_DIM.PEOPLE_DIM.FIRST_NAME' NOPRINT
BY 'PEOPLE_DIM.PEOPLE_DIM.FULL_NAME' AS 'Name'
BY 'PEOPLE_DIM.PEOPLE_DIM.VNUM' AS 'Valley,Number'
ON TABLE SUBHEAD
"<NEW_DAY_TIME "
" "
"Employee Report For"
-IF &CLASSCODE EQ _FOC_NULL GOTO HEAD_ALL_CLASSCODES;
"<MULTI_CODES"
-GOTO KEEP_GOING;
-HEAD_ALL_CLASSCODES
"All Class Codes"
-KEEP_GOING
" "
FOOTING


Thanks for any help


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report This Post
Expert
posted Hide Post
Waz: Thant works for PDF.

Laurie: Add "WIDTH=.5" (adjust the ".5" as desired) for HTML output.




   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, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Wrap & variable text in Heading

Copyright © 1996-2020 Information Builders