Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1375

liveData date filtering

$
0
0

I have a table where each entry has an expiration date. I want to show only the entries that are not expired (i.e. expirationdate >= today).

#set ($today = $datetool.get('dd/MM/yyyy'))
{{liveData
  id="Ad Valvas"
  properties="category,doc.title,expirationdate,doc.date,doc.author"
  source="liveTable"
  sourceParameters="className=Ad Valvas.Code.Ad ValvasClass&translationPrefix=ad valvas.livetable.&expirationdate>=$escapetool.url("$today")"
  sort="doc.date:desc"
  limit="5"
}}

but the filtering in sourceParameters is not working.
It seems that “>=” is not working, all messages are shown.

When I replace this with
expirationdate=$escapetool.url("$today")
then I see the messages with expiration date = today

I also tried to add
filters="expirationdate=$today - 01/01/3000"
Than the user interface shows the filter text, but the user still has to click “apply” to activate the filter.

Any suggestions?

Note that the field ‘expirationdate’ is of type ‘Date’ with ‘Date Format’ = dd/MM/yyyy

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1375

Trending Articles