For my problem it seems to me that one option would be to have one ADDITIONAL? tiddler for a EACH? book with fields entitled "start", "finish" and "format", and then each FIELD? could contain lists ie a LIST FIELD? where each entry in the list TIME/DATE STAMP? references each time I read the book.
It sounds like you are saying that this is a bad idea? How would you go about structuring tiddlers that represent each time that a book is read?
I am generally interested in how others have approached anything similar so if you have any other ideas to share I would be most keen to hear/see them!
Book format: <$select tiddler='$:/book-format'>
<option>Physical book</option>
<option>Audiobook</option>
</$select>
<$button>
<$wikify name=data-tiddler text="$:/data/<<currentTiddler>>" >
<$wikify name=title-value text="<<currentTiddler>> - <<now YYYY/0MM/0DD>>" >
<$action-setfield $tiddler=<<data-tiddler>> $index="Title" $value=<<title-value>>/>
<$action-setfield $tiddler=<<data-tiddler>> $index="Format" $value={{$:/book-format}}/>
<$action-setfield $tiddler=<<data-tiddler>> $index="Start date" $value=<<now YYYY/0MM/0DD>>/>
Start
</$wikify>
</$wikify>
</$button>
<$button>
<$wikify name=data-tiddler text="$:/data/<<currentTiddler>>" >
<$action-setfield $tiddler=<<data-tiddler>> $index="End date" $value=<<now YYYY/0MM/0DD>>/>
Finish
</$wikify>
</$button>
{
"Title": "The Bible - 2019/11/01",
"Format": "Physical book",
"Start date": "2019/11/01",
"End date": "2019/11/01"
}
but I want to be able to generate something like this:
[
{
"Title": "The Bible - 2019/10/31",
"Format": "Audiobook",
"Start date": "2019/10/31",
"End date": "2019/11/01"
},
{
"Title": "The Bible - 2019/11/01",
"Format": "Physical book",
"Start date": "2019/11/01",
"End date": "2019/11/01"
}
Does this seem like a sensible general approach to what I want to do?
I'm struggling to figure out how to do this from looking at your log tool.
I also want to be able to count the number of entries in the data tiddler so I can display how many times I have read the book?
Thank you very much for your help.