Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Rap Functions?

edited November 2003 in General
I'm writing all of my reports as templates and have created a multitude of
rap funcitons for these reports. When I make a change to a rap function is
there anyway to search the report templates to see where these rap functions
are called from? If I make a change I need to know every report that uses
that rap function so I can make sure it still works correctly.

David

Comments

  • edited November 2003
    Hi David,

    Try placing a ShowMessage command inside your RAP function so every time it
    fires, you will see a dialog telling you it's being used. Something like
    the following...

    ShowMessage('MyRapFunction');

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    But that way I have still have to run every report to find out which ones
    are using it. Is there no way to use something like Grep to search the
    template text files for the function name?

    David

  • edited November 2003
    David,

    There is a tool called 'RAP2Text' that could be used to convert the RAP code
    into readable text. This app allows you to save this text into a text file
    with a '.ctt' extension. (i.e. MyReport.rtm will have a MyReport.ctt file)
    It has a feature to convert everything in a directory. You could mass
    create the .ctt files and then use GExperts grep search or something similar
    to it on the .ctt files to find all of the occurances of your RAP function.

    I beleive the utility is by Chris Ueberall, but you can always email me if
    you need the utility.

    Regards,
    Chuck Van Acker
    Alogent Corp.
This discussion has been closed.