Maybe should be in a separate thread. As for javascript macro, I made a
"dateFormat" macro that properly converts date strings for me, but when I
use it in my tiddler as:
<<dateFormat {{!!day}}>>
it gets "{{!!day}}" string literal as a parameter, not the value of field
"day". Is there any sort of escaping syntax for that?
--
Best regards,
Dmitry Ivashkin
On Tue, Apr 22, 2014 at 4:27 PM, FrD <[email protected]> wrote:
> 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 a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/3Mrzau2Ymvg/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>
--
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.