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]Page Break when certain format used?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Page Break when certain format used?
 Login/Join
 
Silver Member
posted
Is it possible to set up a page break when I use PDF output but not when using HTML? If a user just wanted to quickly run a report they can run it in HTML but if they need to print it, it would be better formatted for PDF and I would like to page break on each group.

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


WebFOCUS 8.0.09
Windows, All Outputs
 
Posts: 36 | Registered: November 19, 2014Report This Post
Virtuoso
posted Hide Post
-SET &PB=IF &WFFMT EQ 'HTML' THEN '' ELSE 'PAGE-BREAK';
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY &PB
BY CAR
BY MODEL
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>).Select an output type.

ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
$
ENDSTYLE
END


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Silver Member
posted Hide Post
Thank you, that works but when I try to open the report in the GUI part of App Studio after adding the code, I get errors and it will not open. Is there a way to do this so I don't lose the ability to edit the report in App Studio without the text editor?


WebFOCUS 8.0.09
Windows, All Outputs
 
Posts: 36 | Registered: November 19, 2014Report This Post
Virtuoso
posted Hide Post
In App Studio, create a Procedure instead of a Report, so you can enter Dialogue Manager code. Below, I defined &PB to include the first BY field so I don't have to add &PB in manually. Everything opens in the GUI now.

-SET &PB=IF &WFFMT EQ 'HTML' THEN ' COUNTRY' ELSE ' COUNTRY PAGE-BREAK';
TABLE FILE CAR
SUM
     RETAIL_COST
BY  LOWEST &PB
BY  CAR
BY  MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END

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


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
The object all sublime / we will achieve in time / to ...
...maintain GUI editor compatibility / while meeting the business requirements

Try this method:

DEFINE FILE CAR
  WFFMT/A8='&WFFMT.(<HTML,HTML>,<PDF,PDF>).Select an output type.';  <-- Make &WFFMT a report variable (not essential, but makes next line neater)
  BREAKER/A40= IF WFFMT EQ 'PDF' THEN COUNTRY ELSE 'Never' ;         <-- define sort variable for conditional page-break
END
TABLE FILE CAR
SUM RETAIL_COST
BY BREAKER NOPRINT PAGE-BREAK                                        <-- This will page-break on Country, only if format = PDF
BY COUNTRY                                                           <-- No page-break on COUNTRY itself
BY CAR
BY MODEL
ON TABLE PCHOLD FORMAT &WFFMT

ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
$
ENDSTYLE
END


-- which should be compatible with the GUI editor

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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]Page Break when certain format used?

Copyright © 1996-2020 Information Builders