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

Best way to implement read only

edited May 2005 in End User
Hi,

We need to implement read-only for our reports. I was wondering how to best
do that.
Our users should be allowed to open, edit and preview the read-only reports,
but not save a report to a name that is marked read-only, so we need some
kind of function that can check if the selected name exists and if it is
marked read-only.

Please give some pointers.

Kind regards
Steffen

Comments

  • edited May 2005
    Hi Steffen,

    You can take complete control over how a report is saved if you implement
    the OnCustomSaveDoc event of the TppDesigner. In here you can check to see
    if a file with the same name exists and is read only then save or prevent
    overwriting as you need.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2005
    My mistake, I don't think I was clear enough (It's getting late here). We
    are using ReportExplorer, and we are using an extra field in the database to
    mark the reports read only. So we are using ReportBuilders build in saving
    mechanism.
    We need to check if the selected "file"/database entry is marked read only,
    and if so:
    1) Notify the user
    2) Cancel the saving operation

    Where is the best way to do this, and what methods/properties should we use?

    Kind regards
    Steffen

  • edited May 2005
    Hi Steffen,

    The method I described below will also work in your case however you will
    need to then manually save your templates into your database. In other
    words, you will not be able to use the built in saveing mechanism if you
    want to cancel the save job if the file is read only.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.