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

Request user input through client-server reporting

edited October 2004 in RAP
Hi,

I extended RAP with a function that shows a custom made input form to
extract some dates from the user.
This all works fine when the report is generated by the application that is
running it, but the report hangs when I use the function in a client-server
configuration.
Ths server side is build into a NT service application and the client side
is a stand alone app that connects to the server.

Is there a way to show forms and request user input through the
client-server configuration?

Greetings,
Ranjii.

Comments

  • edited October 2004

    I assume that are using RB Server Edition and creating a ClientReport app
    that connects to an RB Server. In a Server environment all of the RAP code
    executes on the server, thus you cannot write RAP code that displays any
    dialogs. You need to implement code on the ClientReport side.

    Check out RBServer\Demos\Clients\Custom Parameters and
    RBServer\Demos\Servers\Custom Parameters. The examples work together. Each
    example includes a ReadMe.doc and commented code.




    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2004
    Thank you, the whole parameter thing is working, sending to the server and
    accessing the parameters in the report works fine now.
    There is only one small problem, I can not seem to cancel the report;
    I tried rsClientReport1.Canel when the user cancels the dialog on the
    client side,
    I tried checking if parameters exist in the report it self and if the
    don't cancel the report,
    I tried checking for parameters on the server side, but the thing just
    won't cancel.
    I'm probably missing something somewhere, but I'm getting pretty lost.

    So the question would be; how do i cancel a report?

    Greetings,
    Ranjii

  • edited October 2004

    I researched this and currently there is no way to cancel a report that is
    invoked from the report explorer. The ClientReport demo is using the
    BeforePrint event to display the form. However, Report.BeforePrint occurs
    too late to Cancel. For the next release we will add an
    OnInitializeParameters event that contains a Cancel parameter that is passed
    to the event-handler.

    One alternative for implementing a solution with the current release would
    be to create a custom ClientReportExplorer form that can show the parameter
    dialog prior to calling print. You can register your custom
    ClientReportExplorer as the replacement for the current
    ClientReportExplorer. If you would like to pursue this, please send an email
    to support@digital-metaphors.com and we can send you the source code to the
    ClientReportExplorer.


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

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