History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2249
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: P2 P2
Assignee: Frisco Del Rosario
Reporter: notzippy
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Dataseries component does not work with null or single results

Created: 26/Jun/06 02:54 PM   Updated: 26/Oct/06 02:46 PM
Component/s: Components - Charting and Graphing
Affects Version/s: 3.3.1
Fix Version/s: 3.4, 3.3.3

Time Tracking:
Not Specified

Environment: Windows 2000

Severity: Major
Runtime: N/A
Fix in hand: True


 Description  « Hide
The dataseries component performs no type checking on data returned by loaddata method. At the begining of the method is the following code:
var dp = this.getDataPath();
this.values = dp.xpathQuery(this.columndatapath);

xpathQuery may return a null or a LzElement or an array of LzElements. The dataseries class will only function if the result is an array of elements.

If the xpathQuery returns null a series of warnings are generated
If the xpathQuery returns a LzElement the data series is build on the array value of the LzElement object
If the xpathQuery returns an array of LzElements the dataseries is build properly..

Fix
A simple check for the type of value returned by the xpathQuery should be performed before the data is processed.
Other charting components should be able to operate with an empty set of data.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Josh Crowley - 26/Sep/06 09:48 AM
Approved by C&G community owner Garth Smedley.