I seem to be asking the same question all the time! ;->
Tiddler 1:
\define myName() {{$:/status/UserName}}
\define myCreated() <$view tiddler=$(myName)$ field="created" format="text"/>
MyName: <<myName>> (shows DavidSzego)
MyCreated: <<myCreated>> (shows datestamp)
Tiddler 2:
List (should return back the Tiddler with my name):
<$list filter="[field:created<myCreated>]">
<<currentTiddler>>
</$list>
<$button>Click<$action-widget message="whatever" field=<<myCreated>> /></$button>
When I call <<
myCreated>> directly, I get the date stamp.
When I call it from a macro *or* a widget, the best I can get is "
true"!
But more often, I get some kind of quoting error (changes depending on the single/double/none quotes I use in the "
<$view>" widget above), where a button will generate something like
[Click />]
where
<$button...> is including the closing
/> from the
<$action-widget ...
Any hints on how to call these properly?
Thanks! =-)