home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2166 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.0 KB

  1. Path: sparky!uunet!destroyer!cs.ubc.ca!unixg.ubc.ca!unixg.ubc.ca!fragante
  2. From: fragante@unixg.ubc.ca (Gv Fragante)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: SQL*REP - conditional printing of page header
  5. Date: 11 Nov 92 01:08:50 GMT
  6. Organization: The University of British Columbia
  7. Lines: 18
  8. Message-ID: <fragante.721444130@unixg.ubc.ca>
  9. References: <fragante.721088791@unixg.ubc.ca>
  10. NNTP-Posting-Host: unixg.ubc.ca
  11.  
  12. In <fragante.721088791@unixg.ubc.ca> fragante@unixg.ubc.ca (Gv Fragante) writes:
  13.  
  14. >How can I make the page header of a report print conditionally ? In my
  15. >application, I have to make a report that does not print the page number on
  16. >the first page, but does so on all succeeding pages (ie. pages > 1).
  17.  
  18. >Thanks.
  19.  
  20. I got a reply from a fellow and he came up with a very workable solution.
  21.  
  22. In essence, you have to define a field and assign it as it's source:
  23.  
  24.    &SQL Select decode(&Page,1,NULL,&Page) Into :Page_No From Dual
  25.  
  26. The decode function provides the conditional test whether it is the first page
  27. or not.
  28.  
  29. Hope this helps others.
  30.