Tags:
create new tag
view all tags

Question

I am attempting to use TWiki to enter a fixed number of sailboat race results and total them. The idea was to use an edittable table where each row contains the race results for each boat in columns and the total score would be calculated in the last column automatically using a %CALC% which gets inserted into the last column as a label. This works initially however whenever a row is added to the table, each of the the rows above end up with their total column equation replaced by the result for that row. This breaks down when the row is editted again to be updated since the total is then wrong (it has become a constant value). Is there a way keep the %CALC% unevaluated/persitent in the total column while the row is being editted?

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: Many. See http://f18.ca/twiki/bin/view/TWiki/InstalledPlugins
Server OS: Redhat WS 3
Web server: Apache
Perl version: 5.8.3
Client OS: Windows XP
Web Browser: Explorer 6.0 SP2
Categories: Plugins

Below is an example table consisting of two data columns and a total column. It can be used to reproduce the problem with the following steps:

  1. edit the table
  2. add a row
  3. enter a number into each of the first two columns in the new row
  4. save the row
  5. note the last column displays the sum of the first two
  6. repeat the above steps
  7. look at the raw view of this table
  8. notice the first rows %ROWSUM% was replaced by a constant row sum
  9. voila!

  • Set ROWSUM = 0

2 1 3
3 2 5
-4 2 -2
8 -3 5
2 3 5

The table above was coded like this:
%TABLE{}%
%EDITTABLE{ format="| text, 0, Value1 | text, 0, Value2 | label, 5, $percntROWSUM$percnt |" changerows="on" }%

I am suspecting an %EDITTABLE% bug. Any ideas on how to fix or workaround this are very much appreciated! Regards...Maarten

-- MaartenKoning - 06 Mar 2006

Answer

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.

Can't reproduce your error here, sorry.

-- FranzJosefSilli - 06 Mar 2006

It seems I can't reproduce it now either. Arghh. Let's call this one closed. Thanks for checking.

-- MaartenKoning - 09 Mar 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-03-09 - MaartenKoning
 
  • 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.