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

Data Definition Name Query

edited February 2005 in General
Hi,

I create some search criteria at runtime that relies on the name of the data
definition (DATA tab) being 'EMAIL'. Without going into detail, merges are
done. What I want to do is, when a user creates a report under the email
directory, when the report saves I want to ensure tha the name is 'EMAIL'
and if not, modify the report so that it is EMAIL before saving the report.
What is the best way to achieve this?

Regards

Alex

Comments

  • edited February 2005
    Hi Alex,

    There are a couple ways you might do this. First, you can take complete
    control over the saving process by assigning the OnCustomSaveDoc event of
    the TppDesigner. Inside this event, you could simply keep track of which
    directory your user is saving to and then rename the file accordingly.
    Otherwise you could create a utility that periodically checks the files in
    this directory for new enteries and change the names outside of
    ReportBuilder.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2005
    Hi Nico,

    Sorry I didnt explain myself well. I do not want to rename the file but
    within the report, the name of the definition that is created in the data
    tab when creating and modifying a ReportBuilder report. I want to do the
    check for the correct data definition name when the user saves the report
    into Explorer.

    Thanks

    Alex

This discussion has been closed.