[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1



The "procedure=" is kind of a deprecated feature, existing for backwards
compatibility.  Better to use the "before=" and "after=" (which are also
more forthright in what they do).  Try something like....

begin-procedure get_data
begin-select
category &f1 () on-break print=never after=changefield save=$headingfield
element (,25)
from dm_flat_element
 ...
end-select

Also, remember that the heading prints *after* the body of the page, so
during processing, every new-page (explicit or implicit) is when the
heading actually gets fired, and it's for the previous page.

HTH,
Don


On Wed, 2 Jun 2004 Scott.Howser@Certegy.Com wrote:

> 
> Yesterday I submitted some sample code to print dynamically in the heading
> section.  Some people took the code I had literally  but, it was meerely an
> example to show the problem at hand.  Does anyone know how to print
> dynamically in a heading if evreything else in the program works fine.
> Below is some more sample code it is to simply show the problem in its
> simplest form.
> 
> This is the skeleton of the problem.
> 
> We cannot get this to work-----
> 
> !------------------------------------------------------------------
> 
> begin-heading 5
>         print 'heading: ' (,1)
>         let $dn=datenow()
>         print $dn (,10)
>         print $headingfield (,25)
> end-heading
> 
> begin-procedure get_data
> begin-select
> category &f1 (+1,1) on-break procedure=changefield
>       let $headingfield=&f1
> element (,25)
> from dm_flat_element
> 
> 
> end-select
> 
> end-procedure
> 
> begin-procedure changefield
>       new-page
> end-procedure
> 
> begin-program
>       do get_data
> end-program
> 
> !----------------------------------------------------------------------
> 
> Thanks,
> Scott Howser
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This message contains information from Certegy, Inc which may be confidential
> and privileged.  If you are not an intended recipient, please refrain from any
> disclosure, copying, distribution or use of this information and note that
> such actions are prohibited.  If you have received this transmission in error,
> please notify by e:mail postmaster@certegy.com.
> ==============================================================================
> 
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
> 

-----------------------------------------------------------------------
Donald Mellen  | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com |  "In the beginning, there was nothing, which exploded"




_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users