Home End User

No Data Indicator for reports

edited August 2011 in End User
I have my reports set to create a blank report and put a message on the
report when no data is available.? This works some times but other times I
just get a blank report. Any idea why this might be happening? It does not
seem to be report dependent but perhaps data dependent. If there a way to
check a report to see if it is going to be blank or not? That way we could
put in our own code to handle blank reports.

We are using the latest version of the RB.

Thanks

Shawn Pletch



--- posted by geoForum on http://www.newswhat.com

Comments

  • edited August 2011
    Hi Shawn,

    Check your Report.NoDataBehaviors property. If this is set to
    ndBlankPage, the report will be empty if there is no data present.
    ndBlankReport will still display all static objects.

    For your case, you can use the ndMessageOnPage in conjunction with
    ndBlankReport to place a text message on the page informing the user
    that there is no data. Use the OnNoData event to alter this message.

    See the NoDataBehaviors property in the RBuilder help for more information.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2011
    ?I already do this. Sometimes it works, other times it does not. I have it
    hard coded right now to force all reports to this. Any ideas why it would
    work sometime and not others?

    Thanks

    Shawn



    --- posted by geoForum on http://www.newswhat.com
  • edited August 2011
    Hi Shawn,


    Are you by chance loading templates? Note that once you load a
    template, any properties previously set in the report will be
    overwritten by the saved template properties. You can re-assign these
    properties after the template has loaded.

    http://www.digital-metaphors.com/rbWiki/Design/Templates/Using_Template_Events


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2011
    ?I am loading templates but these values are set both in the the template
    data itself and just prior to doing a print (after template is loaded). I
    think that the reports that have the problem may have sub datapipes. Could
    this be the issue? If there is data available but not enough to actually
    create the report, do these get triggered?

    Thanks

    Shawn





    --- posted by geoForum on http://www.newswhat.com
  • edited August 2011
    Hi Shawn,

    Please create a simple example I can run on my machine and send it to
    support@digital-metaphors.com in .zip format and I'll take a look at it
    for you.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.