Custom parameters question
Hi,
Using custom parameters can I get a reference to the instance of the data
module a client session is using. I wish to apply filters to the explorer
items/folders tables to restrict user access to reports. This would be when
the user first connects so the explorer only displays a subset of all the
reports/folders in the tables.
Can it be done?
Many Thanks
Simon
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/2003
Using custom parameters can I get a reference to the instance of the data
module a client session is using. I wish to apply filters to the explorer
items/folders tables to restrict user access to reports. This would be when
the user first connects so the explorer only displays a subset of all the
reports/folders in the tables.
Can it be done?
Many Thanks
Simon
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/2003
This discussion has been closed.
Comments
Simon Callcott a ?crit dans le message :
3e8438ac$1@dm500....
when
Yes.
----------------------------------------------------------------------------
------
Tech Tip: RB Server - Filtering Report Volume Directory information
----------------------------------------------------------------------------
------
The RB Server custom parameters demo shows how to provide client
applications with customized views of the reports available on the server. A
login page is presented to the client that enables the user to specify
custom session parameters.
In the server application, the TrsReportVolume.OnGetDirectory event is used
to modify the Directory tree structure that is passed back to the session.
This event provides access to the client's session parameters and to a copy
of the Directory tree.
Another approach is to use the TrsReportVolume.BeforeBuildDirectory event to
filter the data used to build the directory. When using this approach, you
will want to set ReportVolume.DirectoryOptions.EnableCaching to False. The
TrsReportVolume.BeforeBuildDirectory event provides access to the client's
session parameters. The event-handler code will execute within the context
of the datamodule instance, therefore you have complete access to all
components on the datamodule. Thus, you can use the client's session
parameters to perform a custom database login or apply a filter to a
dataset, etc.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Just what I was looking for.
Is there a report server tech-tips section in the tech-tips newsgroup? I
have synchronized but I still don't see one.
Regards
Simon
No, we'll have to work on created one. I just wrote that article in response
to your question.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com