Hi, thanks a lot, that actually helps!

The only problem left for now is that <$edit-text field="day" tag="input"
type="date"/> makes my 'day' field be in YYYY-MM-DD format, while filter
expects it in YYYY0MM0DD.
I'm not sure what is the proper way to convert one to another. Except maybe
for just changing config.views.wikified.dateFormat.


--
Best regards,
Dmitry Ivashkin


On Tue, Apr 22, 2014 at 2:37 PM, FrD <[email protected]> wrote:

> 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
>
> Le mardi 22 avril 2014 14:16:52 UTC+2, Дмитрий Ивашкин a écrit :
>
>> Hi, I'm trying to make a filter that shows tiddlers created by a certain
>> date.
>>
>> So, I have a tiddler that has custom "day" field. Then I have an
>> interface to change it:
>>
>> <$edit-text field="day" tag="input" type="date"/>
>>
>> So far, so good. Then I have a list of tiddlers that were created on the
>> selected date:
>>
>> <$list filter="[sameday[*???*]!is[system]]">
>> <$view field="title"/>
>> </$list>
>>
>> How do I insert content of "day" field from current tiddler to the search
>> field of the filter above? Is there a way to do that?
>>
>  --
> 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.

Reply via email to