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?
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
like to limit some users from preview a report in that context.
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" ??
What i want is to restrict a certain report, not every report. I think i
will have to customize something
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com