Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: How to make a global function Post Reply Post New Topic
Author Message
gbritton
Newbie
Newbie


Joined: 02 Nov 2012
Online Status: Offline
Posts: 3
Quote gbritton Replybullet Topic: How to make a global function
    Posted: 02 Nov 2012 at 10:56am
I have a Crystal report that contains several subreports. Several of them use similar logic in their functions, so I made a user function that I can call. However, I need to make this function available to all the sub-reports. Currently it is only visible in the Top-level report. If I try to use to my new function in a sub-report, I get an error message.

What should I do to make my function visible from the sub-reports?
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 05 Nov 2012 at 10:57am
I know that if you have the BO Enterprise then you can put the formula in the repository and it is available for all reports.  If you do not have the BO Enterprise, then I am not sure if it possible.  There was a time when we were unable to use the repository, I did a lot of copy and paste.
IP IP Logged
gbritton
Newbie
Newbie


Joined: 02 Nov 2012
Online Status: Offline
Posts: 3
Quote gbritton Replybullet Posted: 06 Nov 2012 at 2:57am
OK! I'll give that go! In the meantime, here's a related question:

In a report as described above, will a global variable in the top-level report be visible to the sub-reports? If so, I might have a second way to do things.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 07 Nov 2012 at 10:56am
It has to be a shared variable.  I have not tried using a shared variable in more than one sub-report, thus I do not know if there is anything you need to watch out for.
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.047 seconds.