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

Custom parameters question

edited March 2003 in Server
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

Comments

  • edited March 2003
    See custom parameters sample.I think it's exactly that you want.


    Simon Callcott a ?crit dans le message :
    3e8438ac$1@dm500....
    when
  • edited March 2003

    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
  • edited March 2003
    Thanks,

    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

  • edited March 2003

    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
This discussion has been closed.