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

Controlling wich user can preview reports

edited August 2005 in General
I would like to control when a user can or can?t preview, and see the
data generated by the report.

What?s the easiest way to do it?


Thanks

Comments

  • edited August 2005
    Hi Marcelo,

    Perhaps a bit more information on what you would like to happen would be
    helpful. Are you using the Report Explorer? Do you want to limit some
    users from preview a report entirely in your app?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005
    Yes, the user access the reports using Report Explorer, and then i would
    like to limit some users from preview a report in that context.


  • edited August 2005
    Hello Nico

    I could control some options in the Report Explorer, but i don?t think there
    is a option for what i want (restrict the user to view a report).

    My code to control some options (at reports and folders too), before open
    the Report Explorer:

    (Note that E40... are actions that the system administrator can associate
    for some users, giving them the rights they suppose to have)



    ppReportExplorer1.ItemOptions := [];

    if E4010.Enabled then
    ppReportExplorer1.ItemOptions := ppReportExplorer1.ItemOptions + [
    ioAllowDesign ];

    if E4020.Enabled then
    ppReportExplorer1.ItemOptions := ppReportExplorer1.ItemOptions + [
    ioAllowNew ];

    if E4030.Enabled then
    ppReportExplorer1.ItemOptions := ppReportExplorer1.ItemOptions + [
    ioAllowDelete ];

    if E4040.Enabled then
    ppReportExplorer1.ItemOptions := ppReportExplorer1.ItemOptions + [
    ioAllowRename ];

    if E4050.Enabled then
    ppReportExplorer1.ItemOptions := ppReportExplorer1.ItemOptions + [
    ioAllowMove ];

    ppReportExplorer1.FolderOptions := [];

    if E4060.Enabled then
    ppReportExplorer1.FolderOptions := ppReportExplorer1.FolderOptions +
    [ foAllowNew ];

    if E4070.Enabled then
    ppReportExplorer1.FolderOptions := ppReportExplorer1.FolderOptions +
    [ foAllowDelete ];

    if E4080.Enabled then
    ppReportExplorer1.FolderOptions := ppReportExplorer1.FolderOptions +
    [ foAllowRename ];

    if E4090.Enabled then
    ppReportExplorer1.FolderOptions := ppReportExplorer1.FolderOptions +
    [ foAllowMove ];


    ppReportExplorer1.Show;



    Is that a fact: there is no "ioAllowView" ??



  • edited August 2005
    I am sorry... i forgot one important detail

    What i want is to restrict a certain report, not every report. I think i
    will have to customize something



  • edited August 2005
    Hi Marcelo,

    No, unfortunately there is no ioAllowView option. On option you might try
    (depending on the database you are using) would be to replace the tables in
    the report explorer setup with Querys, only selecting the reports you would
    like the current user to see and view. In order for this method to work
    correctly, you will need to use live queries. Read only queries will not
    work properly.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005
    Any chance of this feature on next versions ?


  • edited August 2005
    Hi Marcelo,

    Thanks for the feedback. We will consider this type of feature for a later
    release.

    --
    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.