Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

passing summary info to header

$
0
0

Good Day To All,

Is it possible to share a variable from the report footer to the report header?

 

I have 3 running total

{#Letter_Req_DEC}

{#Letter_Req_REQ}

{#LetterReq_Other}

 

My total is a formula like so

TotalLetterReg = {#Letter_Req_DEC} + {#Letter_Req_REQ} + {#LetterReq_Other}

 

Running totals work fine. Formula Works Fine.

 

User wants the summary information on top of the report.

 

So I created a variable, it in my report footer

 

whileprintingrecords;
shared numbervar TotalLetterReq;
TotalLetterReq := 0;

TotalLetterReq := TotalLetterReq + {#Letter_Req_DEC} + {#Letter_Req_REQ} + {#LetterReq_Other};

 

thenI put the variable in my report header

whileprintingrecords;

shared numbervar TotalLetterReq;

TotalLetterReq;

 

But my variable in the report header has a zero

But my variable in the report footer has the correct number of 48.

 

Thanks

David Martinez


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>