Home Server

Problem when NoData

edited May 2004 in Server
When designing the report, i'm setting the autosearch values to
something that results in NoData. when i preview the report i'm
getting the wanted blank page. When pressing the spy-glass to provoce
the autosearchvalues dialog i'm pressing OK, still get the blank page.


When i run the same report over a server the server is crashing in a
OnCalc value where i am referenceing a field. It is correct, the
field, or better, the dataset has no values, but why in the IDE i'm
getting no crash and in the server i'm getting a error.



Kind Regards

Comments

  • edited May 2004

    On the Server the NoDataBehaviors settings for ndBlankPage and
    ndDisplayDialog are not supported. Instead ndBlankReport is used.

    This is necessary because ndBlankPage does not result in any TppPage object
    being created. In a server environment this results in the client waiting
    infinitely for a response from the server. The setting ndBlankReport
    generates an empty report page that is sent to the client.

    In your OnCalc try checking for the no data condition. One simple way is to
    check

    if myPipeline.Bof and myPipeline.Eof then
    {no data}


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


    Best regards,

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