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

NoDataBehavior

edited September 2003 in End User
This is surely a stupid question but here it is anyway.

How can I access the NoDataBehavior from and End-user point of view ? In
other words, how can my end-users change this property while they create
reports ?

Thanks!

Comments

  • edited September 2003
    Hi Steve,

    The end user designer does not support changing the NoDataBehaviors
    property. There is a RAP OnNoData event that you can code to handle what
    happens when there is no data.

    As an alternative, you could add a designer menu option that shows a form so
    that they can set this property. Then your users may want to code the
    Report.OnNoData event in RAP to be able to fully use this property, such as
    they want to change the text that is displayed for the report when there is
    no data. You could also build that into the menu where you create the event
    handler in code in RAP or in Delphi code. That way you could have a form
    that would let them specify the text that they want to show and you could,
    behind the scenes in code, create the draw command or change the dialog text
    to what they specified in your custom form.

    To add a menu option, there is a merge menu property on the designer. See
    the help file for info on the groups numbers in order to add to the menu.
    You could also directly manipulate the menu property on the designer at
    runtime to add a menu item if you do not want to use the merge menu feature.

    If you want to create a RAP event handler in code so your users won't have
    to mess with coding, there is an example of that at the end of the installed
    RAP demos.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.