automatic increment of a template field

231 views
Skip to first unread message

vpl

unread,
Feb 2, 2015, 5:29:27 AM2/2/15
to tiddl...@googlegroups.com
Hi,

The recent post from Beer Tobias https://groups.google.com/forum/#!topic/TiddlyWiki/4K6EGJHmzSE explains how to combine a sum or calc macro with a action widget to set a field into a tiddly.

I have a button that create new tiddly from template and would like that a counter field, part of the the new created tiddly, is increment to 1 based on the value store in the template

Let say that my templateTiddler contains a "counter" field set to 5 initially
When I click on the "New Tiddler" the value from the templateTiddler counter is retrieved, incremented, set to the new tiddler (action set-field) and set also to the template tiddler (for the next time I will create a new tiddler).

Is that something easly possible with current widgets ?

Thanks for your answer

Regards

Vpl

Tobias Beer

unread,
Feb 2, 2015, 6:54:41 AM2/2/15
to tiddl...@googlegroups.com
Is that something easly possible with current widgets ?

As far as I know, you can have any number of these in a button...


So, you could have one to increment the template counter
and another to set the field at your newly created tiddler.

Best wishes, Tobias.

vpl

unread,
Feb 2, 2015, 12:45:20 PM2/2/15
to tiddl...@googlegroups.com
Thanks very much for your answer.
Isn't their a way to have all of that done in the same Button. That's where I'm blocking.
?

Thanks a lot

Vpl

Tobias Beer

unread,
Feb 2, 2015, 2:00:45 PM2/2/15
to tiddl...@googlegroups.com
Here you go...

Isn't their a way to have all of that done in the same Button. 
That's where I'm blocking.

vpl

unread,
Feb 2, 2015, 3:47:58 PM2/2/15
to tiddl...@googlegroups.com
Just magic ...
Thanks a lot for your immediate support 

Really appreciated

Regards

Vpl
Reply all
Reply to author
Forward
0 new messages