Focal Point
[CLOSED] Wrap & variable text in Heading

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6701026613

February 03, 2009, 02:18 PM
Laurie
[CLOSED] Wrap & variable text in Heading
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,
February 03, 2009, 02:29 PM
Darin Lee
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
February 03, 2009, 04:28 PM
Francis Mariani
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
February 03, 2009, 04:38 PM
Laurie
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, $
February 05, 2009, 03:42 PM
Waz
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!

February 06, 2009, 01:49 PM
Laurie
This worked great, thanks.
February 04, 2011, 03:33 PM
MAdams1
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
February 04, 2011, 11:01 PM
Doug
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