Hi Stephen,
After I posted my modifications, I got the dreaded red javascript error. I
then deleted my original message from Google Groups so as not to lead
anyone astray.
But then I realized the error was the result of me failing to follow
expected procedure (use the "Add a new Task" button). I had tried instead
to simply insert <<dailytasks>> into an existing tiddler.
That does work, but one needs also to add the field "lastdate", with
today's date (m/d/yy) as the contents.
Thanks again for a really useful tool!
Here are my crude copy/paste edits again. I liked the (Saturday) in the
tooltip over the boxes but for my running list I only needed to capture
m/d/yy. So I created a clone of var darray2 with the same initial
definition as darray
var darray2= ["O","O","O","O","O","O","O","O","O","O"];
Then I could add a different date format to darray2:
darray2[10-i]=mon+"/"+day+"/"+yr;
With tip2=darray2[i], the buttons can append (or remove) m/d/yy in the
field "datestamp".
(When adding multiple dates, they do need to be clicked in order from
oldest to most recent - if that is what you want - since a sort[] would not
treat them as actual dates.)
for (i=0 ; i<10 ; i++)
{//set tooltip to matching darray entryvar tip=darray[i];var tip2=darray2[i];if
(barray[i]=="X") {// If it was an X then use the modified cancel button
output += '<$button class="tc-btn-invisible tc-tiddlylink"
tooltip="'+tip+'"><$action-listops $field="datestamp"
$subfilter="-'+tip2+'"/><$action-setfield $field="toggled" $value="'+i+'"
/>{{$:/core/images/done}}</$button> ' ;
} else {// not an X so must be an O use modified circle
output += '<$button class="tc-btn-invisible tc-tiddlylink"
tooltip="'+tip+'"><$action-listops $field="datestamp"
$subfilter="'+tip2+'"/><$action-setfield $field="toggled" $value="'+i+'"
/>{{$:/core/images/open}}</$button> ' ;}
} // end for i loop
cmari
My tiddler text:
On Saturday, June 17, 2017 at 5:20:05 AM UTC-7, Stephen Kimmel wrote:
>
> On Friday, June 16, 2017 at 11:10:44 PM UTC-5, cmari wrote:
>>
>> Wow, that is terrific, thank you so much! I will use this daily.
>> I especially appreciate the really clear comments. That made it easy for
>> me to add a field that takes advantage of the tooltip and captures the
>> running list of dates.
>> cmari
>>
>> You are most welcome. It was my pleasure to work on it.
>
> I am open to further modificatons so I would like to see the changes you
> made and hear any ideas for changes you'd like to see made.
>
> Stephen
>
--
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/8d11e037-277d-4cfc-91b8-e1fc357a391e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.