Hello twexperts !
I have a tiddler "fooTimeLine" with a field "dueto" containing a date in tw format. I then want to create a button that is associated to the creation of a new tiddler having as fields:
1) "dueto" with the value in "fooTimeLine" and
2) "end" with the value corresponding to the day after those of "dueto"
My problem is with point 2). I use the nice dateTime macro (
$:/macros/skeeve/dateTime.js at http://tiddlystuff.tiddlyspot.com) but I do not know how to resolve the different macro evaluations:
\define nextDay(day)
<$macrocall $name="dateTime" ts=$day$ format="YYYY0MM0DD0000000" add="+1D"/>
\end
dateTime
<$set name="end" value=<<nextDay {{fooTimeLine!!dueto}}>>>
<$button>
<$x-maketid $title={{fooTimeLine!!appointmentName}} tags="Date" text="a few comments"
dueto={{fooTimeLine!!dueto}} end=<<end>>/>
Create
</$button>
</$set>
which does not work due to the fact macro consists in simple substitution. I am ok with why it does not work but I do not know how to tackle the problem without rewritting a dedicated macro and I thus request your help : Can we deal with nested macro calls and how ?