Phil,
I believe the queryFilter field is here referring to xwiki named query
filters (e.g. hidden, unique, count) documented near the end of:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
For your purposes, I think you will need to use either the extraParams
parameter of the livetable macro or, somewhat more complex but not
overly so, use a custom resultPage which will allow you to fully
customize the query.
See docs at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro for
more info on both.
Mike
On 24.02.2016 08:15, pgregoire wrote:
Hello,
I installed xwiki a few days ago and I'm still learning the ropes. I created
a new class called VersionInformation with its associated template and
sheet.
I'm able to create objects and display them in a livetable, but I have a
hard time using the queryFilters option.
My class has a Version field which I'd like to filter on.
Here is my code:
{{velocity}}
#set($columns = ["Name", "CoreTag", "ReleaseDate"])
#set($columnsProperties = {
"Name": { "link" : "none" }
})
#set($options = {
"className":"Development.Resources.Version
Information.VersionInformationClass",
"tagCloud" : true,
"rowCount": 20,
"queryFilters" : $4_0QueryFilter
})
#livetable("4_0_VersionInformation" $columns $columnsProperties $options)
{{/velocity}}
I have no clue as to how the 4_0QueryFilter variable should be created. I'm
guessing something along the lines of
#set($4_0_QueryFilter = $services.query.xwql("Version='4.0'") )
but that doesn't work. I tried other variations on that with a WHERE
statement, with the .execute() and so on but no success so far.
Can somebody help me out on this?
Thanks
Phil
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-filter-livetable-tp7598115.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users