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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Page-Break...
 Login/Join
 
Platinum Member
posted
Can we do a page-break not on each (PIN) but for every 2 (PIN).

--------------------------------------------
The syntax for first is given below:
BY PIN NOPRINT PAGE-BREAK
--------------------------------------------

tks/sam


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
 
Posts: 133 | Registered: May 12, 2007Report This Post
Virtuoso
posted Hide Post
yes

Create a dummy field PIN2 that changes every two PIN and do the page-break on that field.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
like Amsterdam Frank says,
say you want to do something every 5th...
-SET &MYVALUE = 5 ;
...
if its page-break, you have to make your key a BY field , so you need to do a define *AFTER* have your file in the print order you want
KEY/I1=IF LAST KEY IS &MYVALUE THEN 1 ELSE 1+LAST KEY ; NOPRINT
KEY2/I1=IF KEY GT LAST KEY THEN KEY2 ELSE ABS( 1 - LAST KEY2 ); NOPRINT
BY KEY2 NOPRINT PAGE-BREAK

If its conditional styling, its easier, you don't need the right order first, you can compute:

COMPUTE KEY/I1=IF LAST KEY IS &MYVALUE THEN 1 ELSE 1+LAST KEY ; NOPRINT
COMPUTE KEY2/I1=IF KEY GT LAST KEY THEN KEY2 ELSE ABS( 1 - LAST KEY2 ); NOPRINT
BY PIN
..
TYPE=DATA , BACKCOLOR=&RGBSMOG, WHEN=KEY2 EQ 1,$




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
Guru
posted Hide Post
This seems to work on R714 in Windows. Use BY TOTAL on your COMPUTEd field.

TABLE FILE EMPDATA
HEADING
"*************************************************************"
"Page <TABPAGENO </1"
PRINT FIRSTNAME LASTNAME
      COMPUTE PINCTR/I2 = IF LAST PINCTR EQ 2 THEN 1 ELSE LAST PINCTR +1;
      COMPUTE PB/I2 = IF PINCTR EQ 1 THEN LAST PB +1 ELSE LAST PB;
BY TOTAL PB PAGE-BREAK
BY PIN
ON TABLE SET STYLE *
GRID=OFF,$
ENDSTYLE
END


I would expect it would work on other platforms as well.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders