jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
43 stars 16 forks source link

Suppress "No Data Found" message #132

Closed RichardAPickett closed 3 years ago

RichardAPickett commented 4 years ago

Jeff, thank you for developing this plugin, I'm finding it very helpful and it is saving me lots of time on a current project. My question is whether it is possible to stop the No Data Found message from appearing? For example, "No Data Found" could be the default message in the When No Data Found box in the attributes, so that if it was cleared no message would be displayed. Currently, if the box is cleared you still get the default message. In my case, because there is also a synchronised report, it is obvious when there is no data.

jeffreykemp commented 4 years ago

Interesting idea.

Currently the plugin always shows "No Data Found" if the source query returns 0 rows; the normal expectation is that if it has a source query that "no rows found" indicates a potential problem (e.g. the user's search result was empty). As you say, it is common to have a report shown on the same page with the search results, so we don't necessarily need a big "No Data Found" message to appear on the map as well.

Enhancement: don't show the "No Data Found" message, unless the developer has explicitly specified this message in the When No Data Found region attribute.

jeffreykemp commented 3 years ago

APEX supplies a default "No Data Found" message if none is specified, so I'll implement this feature using a new option - "Suppress No Data Found message", default is No (preserve past behaviour)