Tags:
create new tag
view all tags

SID-00972: Trap ChartPlugin error

Status: Answered Answered TWiki version: 4.3.1 Perl version: 5.10
Category: ChartPlugin Server OS: Windows Vista Last update: 14 years ago

I have a chart which gets data from a database. The chart shows properly when there is data returned by the query. But if the query returns no rows, it shows a ChartPlugin error. How do I capture the error so that a blank chart shows up without showing the ChartPlugin error?

-- TWikiGuest - 2010-09-21

Discussion and Answer

The ChartPlugin needs to be enhanced. Could be done with a new showerror="" parameter. Proposed spec:

  • showerror="text" - show errors as text (default)
  • showerror="image" - show errors as text in chart image
  • showerror="no" - do not show errors

TWiki is open source. You could sponsor the work. Or if you are a programmer, you could enhance the plugin and post a patch to the ChartPluginDev page.

See related SID-00973.

-- PeterThoeny - 2010-09-21

I just added this functionality (Item6714: Enhance error processing)

-- TaitCyrus - 2011-05-05

Cool! Thanks Tait for enhancing the ChartPlugin!

-- PeterThoeny - 2011-05-06

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Trap ChartPlugin error
SupportCategory ChartPlugin
TWiki version 4.3.1
Server OS Windows Vista
Web server Apache 2.0.63
Perl version 5.10
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2011-05-06 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.