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.
I currently have in the footer page count by Insured and the last page number. I need to have it display by insured. Say the Agent has a total of 10 pages but per insured he has 1 of 3 or 1 of 2. I need it to display that way and not 1 of 10. I have tried the repage and that works for the first number but the 10 stays the same. How do I get it to work with the repage number abd say 1 of 2? They are wanting this in the Footing Bottom. All help is greatly appreciated!!!
God Bless....This message has been edited. Last edited by: Kerry,
I did the repage and it works for the 1st number but the end page is not changing. If the Agent has 10 pages total it says 1 of 10, then 1 of 10, then, 2 of 10, then back to 1 of 10 and so forth. So the 1st number is changing just not the last one. I need it to say 1 of 1, 1 of 2, and so forth. :-(
I'm afraid that there is no way to retrieve the last page of a group. The only thing I can think of is using a compound report and report on each agent separately.
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, 2006
You may consider looping through your Agents and Insured to create separate COMPOUND reports as desired. Or, as Prarie suggested "If you do a search on Page Numbering...you will find some examples to choose from". As they say: "There's more then one way to skin the cat".
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
TABLE FILE CAR
SUM
COMPUTE PAGES/I5=CNT.CAR; NOPRINT
BY COUNTRY
PRINT MODEL
BY COUNTRY REPAGE
BY CAR PAGE-BREAK
FOOTING BOTTOM
" "
"PAGE <TABPAGENO of <PAGES"
" "
END
How many "Insureds" do you have? Also, what type of file are you reporting from? Could it be that the "Insured" is an index in the file?
If there are not too many Insureds and there is an index then the following can give you a workaround [it needs to be beautified a bit].
-* File LaTigresa.fex
SET HOLDLIST=PRINTONLY
TABLE FILE CAR
BY COUNTRY
ON TABLE SAVE
END
-RUN
-SET &MAX=&LINES;
-REPEAT #LOOP FOR &I FROM 1 TO &MAX;
-READ SAVE &COUNTRY.A10.
TABLE FILE CAR
WHERE COUNTRY EQ '&COUNTRY'
PRINT SALES
BY CAR PAGE-BREAK
BY MODEL
BY BODYTYPE
HEADING
"Sales Report for &COUNTRY and <CAR"
FOOTING
"Page <TABPAGENO of <TABLASTPAGE"
ON TABLE HOLD AS H&I FORMAT HTMTABLE
END
-#LOOP
-HTMLFORM BEGIN
<html>
<body>
<br>
-REPEAT #SHOW FOR &I FROM 1 TO &MAX;
!IBI.FIL.H&I;
<br>
-#SHOW
</body>
</html>
-HTMLFORM 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, 2006
TABLE FILE CENTORD
SUM
COMPUTE ORD_COUNT/D4 = CNT.ORDER_DATE; NOPRINT
BY STORE_CODE
BY PROD_NUM
PRINT
COMPUTE PROD_PAGE/D4 = ( ORD_COUNT / 56 ) + 1; NOPRINT
QUANTITY
BY STORE_CODE
BY PROD_NUM
BY ORDER_DATE
ON PROD_NUM PAGE-BREAK REPAGE
WHERE STORE_CODE IN ('1003CA', '1003CO','1003CT','1003DC');
WHERE PROD_NUM IN ('1004', '1006','1008','1036');
FOOTING BOTTOM
"<TABPAGENO OF <PROD_PAGE (Total <TABLASTPAGE|)"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, LEFTGAP=0.04, RIGHTGAP=0.04, $
ENDSTYLE
END
You may have to tweak the "56" in the code, depending on how many data rows are displayed, font size, heading lines, etc. The example works.
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
Thanks!!! That worked...I just need to tweak the 56 like you said!!! Thank you so much.
Danny,
I wasn't able to get your code to work with mine. It kept creating hundreds of HTM files. I must have done something wrong. But I'm going to keep your code in mind for future use in case I needed it.