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] PDF Cover page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] PDF Cover page
 Login/Join
 
Gold member
posted
Thanks any one.

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


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
Virtuoso
posted Hide Post
Ludovic,

First, when you post some code, please use the button and place the code between the tags.

If I understand, you want to insert some text and data when a sort field changes value. Did you try using:
ON CHANG_VAL PAGE-BREAK AND SUBHEAD
"bla bla bla " 


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
Oh ok i'm sorry for the code inside message,thanks.

I will test this code :

  
DEFINE FILE CAR
CHANG_VAL/A50 = COUNTRY | ' ' | MODEL; 
END
TABLE FILE CAR
SUM SEATS
BY CHANG_VAL
BY COUNTRY
ON CHANG_VAL PAGE-BREAK
ON COUNTRY PAGE-BREAK AND SUBHEAD
"bla bla bla <COUNTRY"  
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT PDF
HEADING 
"Détail page </1"
END


But, i want to break another page on country. Page break don't Work ?
One page for each country (cover page) and inside on page for each chang_val.

Is it possible ?

Thanks Smiler


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
Expert
posted Hide Post
Ludovic,

The PDF Layout Painter in Developer Studio might be able to generate what you need.


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
Expert
posted Hide Post
Francis is correct. Note that to do this in PDF Painter, the two reports must be 'coordinated'. That would be your keyword to search the documentation. You would actually have two focexecs, one for the COUNTRY page sorted by COUNTRY and the other for the combo but also with the high-order sort of COUNTRY.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
I found the solution with loop.

You can see the code solution :

  

TABLE FILE CAR
BY COUNTRY
ON TABLE HOLD AS HOLD1 FORMAT ALPHA
END
-RUN
-SET &XLINES = &LINES;
-SET &CNTR = 0;
-SET &PREC_CNTR = 1;

-REPEAT LOOP_CNTRY &XLINES TIMES
-SET &CNTR = &CNTR + 1;

-SET &OPEN_CLOSE = IF &CNTR EQ 1 THEN 'OPEN' ELSE
- IF &CNTR EQ &XLINES THEN 'CLOSE' ELSE ' ';
-READ HOLD1 &CNTRY1.A8.
-********************************************
-*
TABLE FILE CAR
PRINT MODEL NOPRINT
HEADING
"PDF COVER PAGE"
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT PDF &OPEN_CLOSE
END
-*
DEFINE FILE CAR
CHAMP/A50 = COUNTRY || MODEL;
END
TABLE FILE CAR
PRINT MODEL
WHERE COUNTRY EQ '&CNTRY1';
BY CHAMP PAGE-BREAK
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT PDF &OPEN_CLOSE
END

-SET &PREC_CNTR = &CNTR;
-LOOP_CNTRY




Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
Expert
posted Hide Post
Ludovic,

That is definitely a good way to do it. I'm happy that you found a simple solution.


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
Expert
posted Hide Post
I am happy that you have a solution. But this would be a greato opportunity to learn a new tool. You were probably in a hurry and didn't have time, but you've got a great example to play with once you do have time. Give it a go! I think you'll like it.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 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     [SOLVED] PDF Cover page

Copyright © 1996-2020 Information Builders