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@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to