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     TEXT FIELDS CANNOT BE PRINTED WITH OVER ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
TEXT FIELDS CANNOT BE PRINTED WITH OVER ?
 Login/Join
 
Gold member
posted
Hello everybody,

I have a .fex which goes like this...

TABLE FILE XYZ
PRINT
BUSINESSNAME 
     BUSINESSNUMBER
     BRANCHNAME
     RVP
     RC
     LOANCOUNT
     OUTSTANDINGPRINCIPAL
     COLLECTIONSCODING OVER
     COMMENT  
...


"Comment" is a text field.When I try to run this report, I get an error message saying '0 ERROR AT OR NEAR LINE 115 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC687) TEXT FIELDS CANNOT BE PRINTED WITH OVER'.

Is there any way to print the "Comment" field in the next line (even though it is a text field)?

Thanks.

Shravan


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Expert
posted Hide Post
Text fields are nasty creatures.

Convert the Text field to Alpha:

DEFINE FILE CAR
TEXT1/TX50 = 'THIS IS A TEST';
TEXT2/A200 = TEXT1;
END

TABLE FILE CAR
PRINT
COUNTRY
OVER TEXT2
END


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
Gold member
posted Hide Post
Thanks a lot, Francis. That worked.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Virtuoso
posted Hide Post
There might be a problem when assigning a text field to an alpha field: it could be larger than the assigned number of bytes. Also you might have to use wrapping.

Another solution would be to put the text field in a subfoot:
  
-* File text1.fex
DEFINE FILE CAR
TEXT1/TX10='This is a text field to be put in a subfoot';
END
TABLE FILE CAR
BY COUNTRY
ON COUNTRY SUBFOOT
"<TEXT1 "
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Gold member
posted Hide Post
Great idea, Danny. I used this idea.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Expert
posted Hide Post
When I run the code with a text field in a SUBFOOT, I get the following error on v5.3.2:


An error has been detected during server to client data transfer. 
ERROR: -12: Server disconnected, cause 32026 Eda code -12 



It works in v7.6. You may still have to play with wrapping, as, in a HTML report, the subfoot gets wrapped to the width of the report column.


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
Virtuoso
posted Hide Post
Francis,

Yes, there used to be many problems with text fields in 5. And I shall not recount the horrors we encountered here with right-to-left output...

In 7, most of them have been fixed. Try this example:
  
-* File text1.fex
DEFINE FILE CAR
TEXT1/TX10='This is a text field to be put in a subfoot';
END
TABLE FILE CAR
BY COUNTRY 
BY CAR 
ON COUNTRY SUBFOOT
"<TEXT1"
END

Look also what happens if you add:
  
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, $
ENDSTYLE

or:
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, COLSPAN=2, $
ENDSTYLE


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     TEXT FIELDS CANNOT BE PRINTED WITH OVER ?

Copyright © 1996-2020 Information Builders