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     Information at bottom of first page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Information at bottom of first page
 Login/Join
 
Member
posted
I am trying to put some information on the bottom of a report on the first page only. I tried using SUBFOOT ... when tabpageno eq 1, but that didn't work. Does anyone any other suggestions?

I am currently using 5.2.1
 
Posts: 5 | Location: California | Registered: November 21, 2003Report This Post
Virtuoso
posted Hide Post
TABLE FILE CAR
"SUM SALES
BY COUNTRY
ON COUNTRY PAGE-BREAK
ON COUNTRY SUBFOOT
"HERE IS MY FOOTING TEXT--> ONLY ON PAGE ONE"
WHEN TABPAGENO = 1
ON TABLE SET STYLE *
TYPE=FOOTING, COLOR=WHITE ,WHEN=SALES GT 30000, $
ENDSTYLE
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
Thank you Prarie, but it doesn't work for me. When I add the WHEN clause my subfoot doesn't appear anywhere.
 
Posts: 5 | Location: California | Registered: November 21, 2003Report This Post
<Special-K>
posted
Can you show us your code? Prarie's example works for me
 
Report This Post
Virtuoso
posted Hide Post
Take out the " in front of the Sum...sorry about that. Should work then.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
Sorry for taking a while to get back. I knew to remove the " from in front of the sum, but I was using a PRINT which doesn't seem to work even in your example. I tried to use a SUM, but it doesn't like my second BY field. Thank you for trying.
 
Posts: 5 | Location: California | Registered: November 21, 2003Report This Post
Platinum Member
posted Hide Post
Lana,

Here's a way to trick it, I think.

TABLE FILE CAR
PRINT CAR MODEL BODYTYPE STANDARD
COMPUTE
COUNTER/I5 = COUNTER + 1; NOPRINT
COMPUTE
FOOT1/A15 = IF COUNTER LT 70 THEN 'Footer line 1' ELSE ' '; NOPRINT
COMPUTE
FOOT2/A15 = IF COUNTER LT 70 THEN 'Footer line 2' ELSE ' '; NOPRINT
FOOTING
""END

I tested this with a local file, but there does not seem to be enough data in CAR to get to a second page. Here's the idea: The footing prints on all pages. It's just blank on all but the first page, because counter will be > 70 on all other pages. Be sure to pick a number for which that statement is true! I used COMPUTE instead of DEFINE because it would do not good to assign a count to each record before the data is sorted (I didn't sort here, but you get the idea).


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Member
posted Hide Post
Thank you I will give it a try.
 
Posts: 5 | Location: California | Registered: November 21, 2003Report This Post
Platinum Member
posted Hide Post
Lana,

I just noticed part of my post was truncated. Here's how the code should have read:


TABLE FILE CAR
PRINT CAR MODEL BODYTYPE STANDARD
COMPUTE
COUNTER/I5 = COUNTER + 1; NOPRINT
COMPUTE
FOOT1/A15 = IF COUNTER LT 70 THEN 'Footer line 1' ELSE ' '; NOPRINT
COMPUTE
FOOT2/A15 = IF COUNTER LT 70 THEN 'Footer line 2' ELSE ' '; NOPRINT
FOOTING
""END


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Platinum Member
posted Hide Post
Ok, obviously upper quotes does something funny. The FOOTING should look like
FOOTING

except that the two lines below FOOTING should both be encased in upper quotes


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Platinum Member
posted Hide Post
Ok, let's try again:

FOOTING
FOOT1
FOOT2

except that the two lines below FOOTING should both be encased in upper quotes, and FOOT1 and FOOT2 should be preceded by left caret (less than sign). I'm going to have to get more familiar with how these posts work.


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Member
posted Hide Post
Thank you both for your suggestions. The compute solution that dwf offered worked just fine. Thank you again.

Lana
 
Posts: 5 | Location: California | Registered: November 21, 2003Report This Post
Expert
posted Hide Post
DWF, simply click on Options and check the Disable HTML check-box.

TABLE FILE CAR
PRINT CAR MODEL BODYTYPE STANDARD
COMPUTE
COUNTER/I5 = COUNTER + 1; NOPRINT
COMPUTE
FOOT1/A15 = IF COUNTER LT 70 THEN 'Footer line 1' ELSE ' '; NOPRINT
COMPUTE
FOOT2/A15 = IF COUNTER LT 70 THEN 'Footer line 2' ELSE ' '; NOPRINT
FOOTING
"FOOT1"
"FOOT2"
END


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
TABLE FILE CAR
SUM SALES
BY COUNTRY
ON COUNTRY PAGE-BREAK
ON COUNTRY SUBFOOT
"HERE IS MY FOOTING TEXT--> ONLY ON PAGE TWO"
WHEN TABPAGENO = 2
ON TABLE SET STYLE *
TYPE=FOOTING, COLOR=WHITE ,WHEN=SALES GT 30000, $
ENDSTYLE
END

And this works on my 5.3.2 server.


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
Platinum Member
posted Hide Post
Thanks, Francis.


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 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     Information at bottom of first page

Copyright © 1996-2020 Information Builders