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
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:
- edit the table
- add a row
- enter a number into each of the first two columns in the new row
- save the row
- note the last column displays the sum of the first two
- repeat the above steps
- look at the raw view of this table
- notice the first rows %ROWSUM% was replaced by a constant row sum
- voila!
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
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