This topic is locked

Error generating a chart

3/8/2010 11:25:28 AM
PHPRunner General questions
B
BenjaminJ author

Hello,
I've got a question about charts...

In a chart, I use the method "Shaping your data more complex way" described in the online documentation : http://xlinesoft.com/phprunner/docs/using_sql_to_shape_chart_data.htm
I use a select which is similar to the one given and when I build my project and, when I try to visualize the chart, an error is displayed in the center of the area:

"XML Parser failure: The element type must be terminated by the matching eng-tag".
Here is the query I use (it works fine when used in the result tab of the "Query" Panel) :
SELECT distinct Table1.Day, a.RED,b.GREEN, c.BLUE FROM Table1

LEFT JOIN (SELECT SUM(NBItems) as RED, Day FROM Table1 WHERE ColID =8 AND Day LIKE "%00" GROUP BY Day) a ON Table1.Day=a.Day

LEFT JOIN (SELECT SUM(NBItems) as GREEN, Day FROM Table1 WHERE ColID =5 AND Day LIKE "%00" GROUP BY Day) b ON Table1.Day=b.Day

LEFT JOIN (SELECT SUM(NBItems) as BLUE, Day FROM Table1 WHERE ColID =1 AND Day LIKE "%00" GROUP BY Day) c ON Table1.Day=c.Day

WHERE Table1.Day LIKE ""

ORDER BY Table1.Day
Which returns a table like :

DAY, RED, GREEN, BLUE

20100100, 7, 9, 3

20100200, 6, null, 8

20100300, null, 2, 4

20100400, 5, 1, 4

...
I tried with a result-set avoiding null's, without success. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=13996&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />
Any idea that could show me the way?

Sergey Kornilov admin 3/9/2010

If SQL query correct i.e. returns data it should not result in XML error.
Most likely this is an issue with chart config though hard to tell with out seeing it. I recommend to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your demo account URL.

B
BenjaminJ author 3/11/2010

Thanks a lot for your answer.
Indeed, the query returns data in MySql Query Browser and in the PHPRunner editor, that's why I don't understand this error.

Unfortunately, I cannot post my project for privacy reasons, so if you have any idea that can help me, they are welcome...
Sincerely,

Benjamin.