Best way to implement read only
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com