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

Security levels and reports

edited June 2002 in General
Hi.

I have various levels of users (admin, tech, etc) each who have different
rights for using end-user reports created by the administrator.

Following previous advice, I have set up the folder items table to have a
SecurityLevel flag and filtered on that. This works well for filtering the
security from the using reports side of things.

The question I have now is when I have the report explorer open and the user
clicks on the 'new report' icon, I need to assign a security level as this
report is created. I'd imagine what I need to do is use the OnCreateReport
method of the report explorer. I'd need to get the current itemID for the
items table, get the user to select the required security level with a
Delphi-built dialog, and update the table with the selected security level.

If this general approach is correct, the parts I am unclear about are the
getting the current itemID.

The other way would be to try to hijack some sort of OnReportSave event (if
there is one) and ask the security level there.

Any suggestions appreciated . . .

Lauchlan M.

Comments

  • edited June 2002
    Hi Lauchlan,

    you have do it on the dataset level, use event 'BeforePost' to set the
    security level.

    regards,
    Chris Ueberall;

This discussion has been closed.