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     [SOLVED] Wrapping TABFOOTING Text in PDF Format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Wrapping TABFOOTING Text in PDF Format
 Login/Join
 
Platinum Member
posted
How can I wrap TABFOOTING text in PDF format:

Here is my example:
 
-SET &LONGVAR = 'FGFGHGHGHGFHGGJGHJHJHJHKHKJKJKJKJKJKJKJKJKJKJKHKJKJHKHKH' |
-               '1ABCDEFGHIJKLMNOPQRSTUVWXYZ2ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
-               '3ABCDEFGHIJKLMNOPQRSTUVWXYZ4ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
-               '5ABCDEFGHIJKLMNOPQRSTUVWXYZ6ABCDEFGHIJKLMNOPQRSTUVWXYZ';

TABLE FILE CAR
PRINT
CAR
BY COUNTRY

ON TABLE SUBFOOT
"&LONGVAR"

ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='LEGAL',
     ORIENTATION=LANDSCAPE,
     SQUEEZE=ON, $

TYPE=TABFOOTING, FONT='ARIAL', SIZE=9, $

-* Display border around entire table footing page
TYPE=TABFOOTING, BORDER=1, $

ENDSTYLE
END


Thanks,
Sean

This message has been edited. Last edited by: Kerry,


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Virtuoso
posted Hide Post
Sean,

Create a DEFINE field instead of a Dialogue Manager field to contain the long value. It should then wrap properly.

Here is some code using the CAR file:

-SET &LONGVALU=
-'A;LDFJ ADSGJ ALJGALKSFJAJFASL ALSDF ASDFJOIWJFE ASDFLKA' |
-'AASDFLJ ASDFJ ASDFJAL ASDFJALSDFJA LAKSFJASDFJ FJ ASFJ ADFJ' |
-'FLKDF ADLKF FASLKDFJDFK AFALSKF ASDFJA ALDSF SFD DSFL; ASDF';
DEFINE FILE CAR
LONGVALU/A256=
'A;LDFJ ADSGJ ALJGALKSFJAJFASL ALSDF ASDFJOIWJFE ASDFLKA' |
'AASDFLJ ASDFJ ASDFJAL ASDFJALSDFJA LAKSFJASDFJ FJ ASFJ ADFJ' |
'FLKDF ADLKF FASLKDFJDFK AFALSKF ASDFJA ALDSF SFD DSFL; ASDF';
END
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE SUBFOOT
"The following is the DEFINE field:</1"
"<LONGVALU"
" "
"The following is the Dialogue Manager variable:</1"
"&LONGVALU"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, BORDER=MEDIUM,$
TYPE=TABFOOTING, BORDER=OFF, WRAP=7,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Mickey,

Thanks for the response!

So there aren't any settings that can be done in the style section that will handle amper variables in a generic way? I need to do this for several amper variables in many different types of reports.

Thanks,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Platinum Member
posted Hide Post
As Mickey said, The report needs a defined field containing the text in order to wrap.

The original example with DEFINE:

-SET &LONGVAR = 'FGFGHGHGHGFHGGJGHJHJHJHKH KJKJKJKJKJKJKJKJKJKJKHKJKJHKHKH' |
-               '1ABCDEFGHIJKLMNOPQRSTUVWX YZ2ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
-               '3ABCDEFGHIJKLMNOPQRSTUVWX YZ4ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
-               '5ABCDEFGHIJKLMNOPQRSTUVWX YZ6ABCDEFGHIJKLMNOPQRSTUVWXYZ';


DEFINE FILE CAR
  LONGVAR/A512 = '&LONGVAR' ;
END

TABLE FILE CAR
  PRINT CAR
  BY COUNTRY
  ON TABLE SUBFOOT
    "<LONGVAR"
  ON TABLE PCHOLD FORMAT PDF

  ON TABLE SET STYLE *
    UNITS=IN,
    PAGESIZE='LEGAL',
    ORIENTATION=LANDSCAPE,
    SQUEEZE=ON, $

    TYPE=TABFOOTING, FONT='ARIAL', SIZE=9, 
    WRAP=5, GRID=ON, $
  ENDSTYLE
END

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Platinum Member
posted Hide Post
OK, thanks Mikel!

I guess I'll have to work with that then.

Thanks for your help guys!

Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Virtuoso
posted Hide Post
Sean,

For some reason wrapping does not work for plain text in a FOOTING. This is why it needs to be a field. I'm not sure if this is a known issue or not. I don't know why it does not work with plain text but you would think that it should.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Ya, I would have thought so too Mickey. Unfortunately I have to rework a whole bunch of code just to accommodate wrapping for PDF format (I also support HTML and Excel formats). Oh well, at least there is a way to do it.

Thanks again!
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Expert
posted Hide Post
quote:
I don't know why it does not work with plain text but you would think that it should.

Years later and FocalPoint pulls thru again... Thanks Guys for the good explanation...
 
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     [SOLVED] Wrapping TABFOOTING Text in PDF Format

Copyright © 1996-2020 Information Builders