Hi,

Perhaps simpler (?) :

\define myFilter(fieldvalue)
<$list filter="[sameday[*$fieldvalue$*]!is[system]]">
<$view field="title"/>
</$list>
\end

and then use it like that :

<$macrocall $name="myFilter" fieldvalue={{!!!day}}/>

As for your format problem, try a simple javascript macro with 
String.replace()function.

FrD


Le mardi 22 avril 2014 14:37:16 UTC+2, FrD a écrit :
>
> Hi,
>
> I have the same problem : using a field value in a filter expression.
> So far I use a macro and a variable :
>
> At the beginning of the tiddler :
>
> \define myFilter()
> <$list filter="[sameday[*$(fieldvalue)$*]!is[system]]">
> <$view field="title"/>
> </$list>
> \end
>
> and then use it like that :
>
> <$set name="fieldvalue" value={{!!day}}>
> <<myFilter>>
> </$set>
>
> FrD
>
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to