I finally figured out what was wrong with the sumfield part of this plugin, 
so here it is: http://inmysocks.tiddlyspot.com/#MathyThing%20Plugin

At the moment it contains two things: First it has an action widget version 
of the count widget that stores the value in a specified field instead of 
displaying it, there is something not quite right about it though and it 
may take triggering it twice to get it to work in some cases.

The other thing is the sumfield widget. This widget takes a filter 
expression and two fields, it goes through the list given by the filter and 
sums all the values in the specified field in those tiddlers and stores the 
output in the other field. So:

<$sumfield filter='[tag[sum]]' sumfield='text' storefield='store_field'/>

would take all the tiddlers tagged with 'sum', sum up the values stored in 
the text field of those tiddlers and store that value in the field 
'store_field' in the current tiddler. It updates whenever the sum of the 
fields changes, so you see the results as you change values. There is an 
example at the link above.

It does write to a field, so the content of your wiki is changed and it may 
somehow decided to break everything and make you lose your data. It 
shouldn't do that, but you should back up your wiki before playing with it 
anyway. If you find any problems with it please let me know. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to