On Saturday, September 12, 2020 at 6:12:12 PM UTC-7, Bob Jansen wrote:
>
> <$button>
> <$wikify name="theuniqueid" text={{$:/TLS/uniqueid}}>
> <$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
> <$action-setfield $tiddler="$:/TLS/new-id" text={{$:/TLS/uniqueid}}
> uniqueid=<<theuniqueid>> />
> </$wikify>
> Add
> </$button>
>
This can also be done without using $wikify, by using an "inline filter",
like this:
<$button> Add
<$vars id={{{ [{$:/TLS/idcode}addsuffix{$:/TLS/incremental}] }}}>
<$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
<$action-setfield $tiddler="$:/TLS/new-id" text=<<id>> uniqueid=<<id>> />
</$vars>
</$button>
-e
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f856baf6-18a7-41e0-a1d6-da474f7e1cd3o%40googlegroups.com.