Tags:
create new tag
, view all tags

Question

When including (from another page) a page with chart (ChartPlugin) that uses data from table with some spreadsheet expressions (SpreadSheetPlugin), I get always a blank chart (like all values equal to zerro). Expressions are defined using variables:

%CALC{"$SET(suma, $NOEXEC($ROUND($SUM(R$ROW(-11):C$COLUMN()...R$ROW(-1):C$COLUMN()),1)))"}%

The table row which makes the troubles looks like the following:

| *SUM* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* |

When I change the chart definition to use row without spreadsheet expressions, everything works well. No error or warning message in apache/twiki logs.

Here is the whole included page code:

 
Metrics \ Month I.07 II.07 III.07 IV.07 V.07 VI.07 VII.07 VIII.07 IX.07 X.07 XI.07 XII.07
ochir 0 0 0 0 0 0            
ogyn 1607 1607 0 0 0 1607            
olm 781 0 0 0 0 0            
aro 0 0 1700 1200 0 3594            
koa 0 0 0 0 0 0            
koa 0 0 0 0 0 0            
kob 0 0 0 0 0 0            
koc 4821 0 0 0 1700 0            
ouro 4780 2400 0 0 0 2202            
kro 0 0 0 0 0 0            
stac 0 0 1607 0 0 0            
sum 11989 4007 3307 1200 1700 7403 0 0 0 0 0 0


You can see the result in Sandbox/PetrKlikaSandbox.

When I tried to use the $ROUND(...) expressions directly (instead of calling $EXEC(...)), I've got graph with -11 values in the included chart. This leads to some parse error in the expressions probably.

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: SpreadSheetPlugin, BeeWikiPlugin, ChartPlugin, CommentPlugin, EditTablePlugin, ExcelImportExportPlugin, InterwikiPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TagMePlugin, TwistyPlugin, XinhaEditorPlugin.
Server OS: RedHat, uname -a returned: Linux miss1.mou.cz 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
Web server: Apache/2.0.52
Perl version: v5.8.5 built for i386-linux-thread-multi
Client OS:  
Web Browser:  
Categories: Plugins

-- PetrKlika - 21 Aug 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I suspeced a web="%WEB%" topic="%TOPIC%" in %CHART would do the trick, but not so. Not sure how to fix that.

-- PeterThoeny - 27 Aug 2007

Sorry, closing this after more than 30 days of inactivity. Please feel free to reopen the question.

-- PeterThoeny - 03 Oct 2007

 
Change status to:
Topic revision: r3 - 2007-10-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.