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.
Is there a way to get multiple consecutive long defined variables to wrap properly in the TABFOOTING in PDF format?
When I have 2 variables in the same line and try to wrap them, the second variable appears beside the first variable, and not below it, which is what I need.
I would like to handle this on just one line if possible.
Here is the code:
-SET &LONGVAR = 'FGFGHGHGHGFHGGJGHJHJHJHKH KJKJKJKJKJKJKJKJKJKJKHKJKJHKHKH' |
- '1ABCDEFGHIJKLMNOPQRSTUVWX YZ2ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
- '3ABCDEFGHIJKLMNOPQRSTUVWX YZ4ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
- '5ABCDEFGHIJKLMNOPQRSTUVWX YZ6ABCDEFGHIJKLMNOPQRSTUVWXYZ';
-SET &LONGVAR2 = 'XXXFGFGHGHGHGFHGGJGHJHJHJHKH KJKJKJKJKJKJKJKJKJKJKHKJKJHKHKH' |
- '1ABCDEFGHIJKLMNOPQRSTUVWX YZ2ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
- '3ABCDEFGHIJKLMNOPQRSTUVWX YZ4ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
- '5ABCDEFGHIJKLMNOPQRSTUVWX YZ6ABCDEFGHIJKLMNOPQRSTUVWXYZ';
DEFINE FILE CAR
LONGVAR /A512 = '&LONGVAR' ;
LONGVAR2/A512 = '&LONGVAR2' ;
END
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE SUBFOOT
"<LONGVAR <LONGVAR2"
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
Thanks for your help! SeanThis message has been edited. Last edited by: smiths,
------------------------------------------------------------------------ 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, 2005
The FIELDs are treated as two seperate entities and therefore will wrap in seperate cells/columns. You can create an Alpha format field up to 4k(?) (I think) and therefore should create a DEFINE field with them concatenated together.
LONGVAR/A1024 or LONGVAR/A2048 or etc, etc.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Sean, Check the posts in the "Limitations..." thread. DocServices just posted a note that the limit is 4k but slightly less in so cases. Maybe this is in releases later thatn 5.2.3.
In any event, 4k won't hold 10k.
Try looking into TX format fields. If they can hold up to 10k then they may be a solution. They inherently wrap according to their length definition. For example, a field of TX100 would wrap at with lines up to 100 characters long. Stylesheet syntax would not be necessary in this case.
Check it out.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
I did implement the solution using separate lines for each long string for PDF format, and put all the variables on the same line for HTML and Excel format. It was a somewhat painful exercise (since it's a bunch of generic processing that I required), but it works.
Thanks for all your assistance! 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, 2005