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

Session Parameters

edited August 2003 in Server
I have a report server running as a Windows service and it uses form-based
reports. I have my webTier displaying a Login page that prompts for
UserName and Password and I pass those values to the report server. I
validate server access based on the UserName and Password entered (just like
your Custom Parameters demo). My problem is this:

I want to filter my reports based on the UserName and Password entered. How
do I retrieve that information after the user selects a report? Do I need
to save that information when the client logs in to the server (from the
ValidateSessionParameters event)?

Thanks.

Comments

  • edited August 2003

    You can also use the ReportVolume.BeforePublishReport event to access
    SessionParameters and ReportParameteres and the Report object. These are
    accessible via properties of the aEventParams object that is passed to the
    event-handler. The aEventParams object is of type
    TrsBeforePublishReportEventParams - the properties of this object are
    documented in the RBServer.hlp.

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2003
    I'm currently not using any "volume" type components. In other words, I
    only have TppReport, TppDBPipeline, TQuery, TDataSource, TDatabase, TSession
    components on my forms. I had used your example of "Form-Based Reports"
    when I developed my application. Do I need to add a TrsReportModuleVolume
    component to my forms? Your help file says that this component is
    "implicitly" created if no TrsReportModuleVolume is found for the specified
    volume name. Can I access the events of this "implicitly" created object?



  • edited August 2003

    I was finally able to create an example of using TrsReportModuleVolume
    event-handlers:

    http://www.digital-metaphors.com/tips/ReportModuleVolumEventHandlers.zip


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2003
    This looked like the example I was needing, but it is missing one
    file,'myReportVolume.pas'.

    I find these extra examples very valuable, is there any way to get a
    list of what you have available or an idea some of the examples of
    processing events? I need all the help I can get.

    Thanks,
    Dave


  • edited August 2003

    The example has been updated, please download again.

    http://www.digital-metaphors.com/tips/ReportModuleVolumEventHandlers.zip

    Other than the RBServer\Demos, this is the only example related to
    processing events.





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.