Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Dynamic Footnotes Post Reply Post New Topic
Author Message
tampitt09
Newbie
Newbie


Joined: 23 May 2013
Location: United States
Online Status: Offline
Posts: 8
Quote tampitt09 Replybullet Topic: Dynamic Footnotes
     Posted: 26 Mar 2014 at 12:39pm
Hello

I'm not sure if there is a way to dynamically linking the footnote in the report footer section to some formulas from details section? here is an example:

=============================================================
employee gender date joined
John      M      03/21/2010
Keith     M      02/15/1998
Jen(1)    F      11/22/2000
Jane      F      10/27/2012
Andrew(2) M      05/05/2007       

Note:
(1) Jen joined us 2000 as contractor
(2) Andrew started with us in 2000, left 2001 then comeback 07
==============================================================

I can have a formula something like
===================================
if {emp.name} = 'Jen' then
   '1'
else if {emp.name} = 'Andrew' then
   '2'
else if ........
====================================
This would work for details section but as soon as I put this in either Page footer or Report Footer section, it doesn't work...am I missing something?

thanks in advanced

TT
IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet Posted: 28 Mar 2014 at 2:05am
If you put this in the page footer, it will only look at the last record on that page. If you put it in the report footer it will only look at the last record in the report.

What are you trying to place in the footer?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 28 Mar 2014 at 4:58am
you could use a variable to hold the footnotes. as you add them in the detail section you would increment the footnote variable, and then display it in report footer.

the details would be something like:
shared stringvar footnotes;
local stringvar crlf := chrw(13) + chrw(10);

if (what ever triggers a footnote) then
footnotes := footnotes + crlf + "(" + totext((your footnote number), 0, "") + ")" + {table.field}; //assuming the comment from a field
""// hides the output of the growing footnote


in the report footer, the formula would like:
shared stringvar footnote;
mid(footnote, 3) //removes the first crlf (which is 2 characters)

also set the formula in the report footer to Can Grow.

HTH
IP IP Logged
tampitt09
Newbie
Newbie


Joined: 23 May 2013
Location: United States
Online Status: Offline
Posts: 8
Quote tampitt09 Replybullet Posted: 02 Apr 2014 at 2:01pm
Hello

thanks for replying...I don't quite follow what you are suggesting here, I just hard coded for now

Thanks again

TT

IP IP Logged
tampitt09
Newbie
Newbie


Joined: 23 May 2013
Location: United States
Online Status: Offline
Posts: 8
Quote tampitt09 Replybullet Posted: 02 Apr 2014 at 2:02pm
I just want to place a note in the footer, just text nothing else
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum