Thanks Thomas with all this help I’m getting I’m learning fast
Bobj
Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Ph: +61 414 297 448
Skype: bobjtls
> On 12 Sep 2020, at 06:05, Thomas Elmiger wrote:
>
> And here is a button that creates a new tiddler who’s title includes a
And here is a button that creates a new tiddler who’s title includes a
number retreived from a tiddler.
After creating the tiddler, the number ist incremented using the rpn macro:
<$wikify name="id" text="{{$:/plugins/telmiger/AutoTid/next-ID
}}-{{$:/plugins/telmiger/AutoTid/namespace}}">
Hi bobj
Some time ago, before TiddlyWiki had math filters, I made a plugin for
simple minds like me ;–)
https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Frpn
Amongst other simple tasks it comes with a handy macro:
- the macro takes two operands (*a* and *b*) as input – this may
Indexe based location to increment
Requires initialisation
<$button>
<$list filter="[{$:/config/incremental/indexes##A}is[blank]]" variable=nul>
<$action-setfield $tiddler="$:/config/incremental/indexes" $index="A"
$value="0"/>
<$action-setfield $tiddler="$:/config/incremental/indexes"
Bob, a little more
- If you are doing this to develop a unique ID I have done considerable
work on what I call a tiddler Serial number, so do ask.
- The new tiddler process done the correct way, will also increment a
tiddler title if the current title exists.
- It is possible to
Bob,
I meant to say I live and work in Randwick.
Place this in a new tiddler and click add 1
<$button>
<$action-setfield $tiddler="$:/config/incremental" text={{{
[{$:/config/incremental}add[1]] }}}/>
Add 1
$:/config/incremental {{$:/config/incremental}}
<$set name=currentN
Bob,
You are not on the wrong track, but there are more possibilities than that.
To increment a number you need to write to a tiddler or field, unless you
are using variables, in your case you want the value saved in a tiddler,
you will need to use a trigger. the most common of which is a
am I correct in my thinking that I can consider a tiddler like an object in
an OO database having data stored in fields and functions stored as macros
in the text field?
In my case, if I had a tiddler, say $:/tls/unique-id with a field unique_id
having a value of 1. I could then write a macro
Tones,
Thanks for your reply. I am not averse to learning about filters in fact as I
go along I'm getting much better at them.
I was just frustrated at the poor documentation of how to do simple
concatenation or arithmetic. The examples assume a higher level of familiarity
with the subject
Building off TW Tones, here's a simple temperature converter using filters
to pull an input number from a state tiddler ( $:/_br/converter/state )
field named "temp-f" and use filter math operators to convert it to celsius
before editing another field (temp-c) in the same state tiddler. You can
Bob,
1. Is there a simple concatenation operator, like & or + that can be used
> to concatenate strings? I know that a macro can do it but that seems very
> confusing to a simple mind like me.
1. Concatenation
There are many ways to concatenate with tiddlywiki, although for good
reasons in
11 matches
Mail list logo