Hi Tobias,
first, thanks for taking time to respond.
I think the latter solution is better, it brings forth a good feeling.
Storing the eval in a field makes sense, its similar to the cubed example;
<$list filter="[[]eval{eval-Examples!!cubed}]"/>
I like the way mathematical functions are presented as "filters"
Do you think it would be worth creating a calcs tiddler with common calcs,
such as squared, percent?
Alex
On 20 December 2015 at 11:54, Tobias Beer <[email protected]> wrote:
> Hi, again, Alex,
>
>
>> Now to the quite simple solution: use a ButtonWidget
>> <http://tiddlywiki.com/#ButtonWidget> like so...
>>
>
> Actually, there is a perhaps more sensible solution where you don't store
> that computed result into a field at all, but rather store the formula for
> it in that field using the *eval* *widget*, e.g.:
>
> title: Carbo-needs
> kcal-per-day: 2500
> carbs-percent: 45
> kcal-carbs: <$eval>{{Carbo-needs!!kcal-per-day}}*{{Carbo-needs!!carbs-
> percent}}/100</$eval>
>
> And then, in any tiddler, do...
>
> {{Carbo-needs!!kcal-carbs}}
>
> Best wishes,
>
> Tobias.
>
> --
> 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 https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/67d6d372-6a87-455e-bfb9-f597390ab2a1%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/67d6d372-6a87-455e-bfb9-f597390ab2a1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/CALc1hYfH%2BFrYoXK%3DW%2BMTKkZnHEannFTKHwyZqncij%2BfZhLzgPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.