On Sunday, 13 January 2019 18:41:55 UTC+10, Jed Carty wrote:
>
> ...But I suspect that the timestamp will be from the previous time you
> clicked the button, not from when you click the button now, because the
> button hasn't refreshed since the last time you clicked it.
>
> Jed, You were quite right, I was getting the timestamp from the previous
button click!
I don't remember what the solution to this one is.
>
I don't profess to fully understand what is going on here, but my solution
was to break the code into two tiddlers, the button defined as:
<$button actions={{Create new tiddler action}}>
Create New Tiddler
</$button>
and an action tiddler "Create new tiddler action" containing:
<$wikify name="Title" text="""$:/prefix/<<now YYYY0MM0DD0hh0MM0ss>
>/MyNewTiddler""">
<$action-createtiddler $basetitle=<<Title>> $savetitle="$:/temp/saveTid"/>
</$wikify>
This seems to work as intended, with the correct timestamp each time the
button is clicked.
Regards,
Mal
--
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/8df145cb-2465-4396-9d2f-50319debecda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.