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] Page Break every 20 lines, for example.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Page Break every 20 lines, for example.
 Login/Join
 
Member
posted
Hi,
I'd like to Know how to use a page break every x lines. I've tried with several option I've got in the forum but none works (almost I can`t do it work).

I`ve this code:

TABLE FILE FICHERO
PRINT
COD_PERSONA
NOM_DENOM_SOCIAL/A20
RECUR
INCREREC
IMP_ACT_MED_MES_AC/D12
INCREACT
OMACU
MAR_OPE_AJ_ACU_AC/D12.2
COMPUTE MARACU/D9 = MAR_OPE_AJ_ACU_AC;
MAR_OPE_AJ_ACU_AA/D9
COMPUTE MAROPEACUAA/D9.2= MAR_OPE_AJ_ACU_AA;
WHERE MES EQ '&MES.EVAL'
WHERE ANNO EQ '&ANNO.EVAL'
BY DESC_SEGMENTO AS 'SEGMENTO'
SUMMARIZE RECUR INCREREC IMP_ACT_MED_MES_AC INCREACT COMACU MARACU MAROPEACUAA AS 'TOT.'
ON TABLE HOLD FORMAT HTMTABLE AS INF86
END
-RUN

If someone could help me, I'll thank him/her a lot.

Vicente.

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


WebFOCUS 7.6.1
Windows
HTML, Excel and PDF
 
Posts: 9 | Registered: May 05, 2009Report This Post
Virtuoso
posted Hide Post
You can only control Page-Breaks with a sort value. So to get what you need, you'll have to either define a field which increments a page counter every 20 records, or do the same in a compute field in which case you would have to to BY TOTAL computedfield PAGE-BREAK. There are many working examples of this on the forum. There does not seem to be anything in your code out of the ordinary that would keep these examples from being used in your code.

The one thing I DID notice is the HOLD FORMAT HTMTABLE. How is this subsequently being used? There really isn't a concept of page-breaks in HTML other than adding new headings, page-number, etc for each page-break.


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
Member
posted Hide Post
Thank you for your answer.
The file INF86 (hold format htmltable) is used later into a html page with several parts.
I've tried with the BY TOTAL computedfield PAGE-BREAK but, even using NOPRINT, this line is printed and I don´t want it.

Regards,

Vicente.


WebFOCUS 7.6.1
Windows
HTML, Excel and PDF
 
Posts: 9 | Registered: May 05, 2009Report This Post
<JG>
posted
Darin is correct there is no concept of page break in HTML except for repeating headings

However not wanting to be obvious but as it's for HTML how about the good old SET LINES= option

SET LINES=26

You will have to pick 26 as you must account page numbering, HEADINGS FOOTINGs etc
 
Report This Post
Expert
posted Hide Post
if you're willing to create separate output files, each 20 lines (or whatever) long,
and then do your display in -HTMLFORM
then yes you can page-break in html.
Lots of looping involved.
You up for that?
if so, take a deep breath...and here we go...
-HTMLFORM BEGIN
....
<STYLE>
P.breakhere {page-break-before: always}
</STYLE>
</HEAD>
<BODY>
!IBI.FIL.FIRST;
<P CLASS="breakhere">
!IBI.FIL.SECOND;
<P CLASS="breakhere">
...lather, rinse, repeat.
</body>
</html>
-HTMLFORM END


You wont see anything different on your screen, but if your users send from the screen directly to the printer, you'll see the page break.
Is that what you wanted?

If all you wanted is to repeat column titles and/or headings after 20 or so lines, then the SET LINES thing is all you need, as JG says.

Are you in Italy? Where are you? your code is fun to read. I'ld love to see some error messages in italian. cool.

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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] Page Break every 20 lines, for example.

Copyright © 1996-2020 Information Builders