in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Passing Session Variables

Last post 11-02-2007 5:11 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-10-2007 7:03 PM

    • micros
    • Not Ranked
    • Joined on 09-10-2007
    • Posts 1

    Passing Session Variables

    Is there any way to pass a session variable to the Report so that a specific report can be viewed. Such as passing the OrderId so that a particular Customer Order can be viewed. Perhaps as a Parameter?

    I want the user to be able to click on a link to view the report which will pass the OrderId as a session variable to the Report and bring up the correct Master/Detail record...or is there a better way to do this?

    thanx!

  • 11-02-2007 5:11 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 527

    Re: Passing Session Variables

    You should be able to pass them like any other variables

               Private Sub C1WebReport1_InitializeParametersDialog(sender As Object, e As C1.Win.C1Report.DialogEventArgs)

           Dim p As C1.Win.C1Report.ReportParameterCollection = e.Parameters

           p("OrderID").Value = Session("OrderID")

          

    End Sub

    regards,
    Greg L

     

    ComponentOne Technical Engagement
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.