\define stamp() $(old)$ <hr> At $(nows)$ <br> $(add)$
\define appendButton(old,add)
<$vars old="""$old$""" add="""$add$""" nows=<<now>>>
<$button set="Log1" setTo=<<stamp>>> add to log<
/$button>
</$vars>
\end
I already have a log here tool, that uses a data tiddler and timestamps each row/ record.
Would you like me to share it, or just the part that addresses the timestamping?
Tony
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/GATlu5BWzq8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/c112af20-a5f8-4c10-b51b-542c6506c064%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/GATlu5BWzq8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/723a8719-5255-40bd-8960-e8b85401d0e5%40googlegroups.com.
That's amazing - lot's for me to study.
A completely different approach would be to store the log entries in a data dictionary. Then use a display tiddler to present the entries. I have a daily reading log that works this way (I didn't write the routine -- think it was PMario) that now has records going back to 2014, so more than a thousand entries.
\define saveSnapshot()
<$button set="$:/_snapshots##$(snapshot)$" setTo={{$:/StoryList!!list}}>Save Snapshot</$button>
\end
\define showSnapshot()
<$button set="$:/StoryList!!list" setTo={{$:/_snapshots##$(snap)$}}>Show Snapshot</$button>
\end
;Show Snapshot
<span title="Select a Snapshot"><$select tiddler="$:/_snapshots" field="story-name" default='(none)'>
<$list filter="[[$:/_snapshots]indexes[]]" variable="currentIndex">
<option value=<<currentIndex>>><<currentIndex>></option>
</$list>
</$select></span>
<$set name="snap" value={{$:/_snapshots!!story-name}}>
<<showSnapshot>>
</$set>
;Save Snapshot
<span title="Enter a Name"><$edit-text tiddler="$:/_snapshots" field="story-name"/></span>
<$set name="snapshot" value={{$:/_snapshots!!story-name}}>
<<saveSnapshot >>
</$set>
Sorry to hear that he is the "late" Matabele. On groups like this people can disappear for many reasons and one never knows.