HI Peuhpeuh, there are may ways to fix this, problably the easiest is to change the macro:
\define nextDay(day) <$macrocall $name="dateTime" ts={{$day$}} format="YYYY0MM0DD0000000" add= "+1D"/> \end dateTime <$set name="end" value=<<nextDay "fooTimeLine!!dueto">>> all the best BJ On Wednesday, January 25, 2017 at 5:03:10 PM UTC, peuhpeuh singe wrote: > > 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 ? > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@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/eb1adbcf-b495-438e-a0e3-dc14c858b511%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.