the correct option identifier for the name of the column on which to sort the livetable by
default is "selectedColumn", in which case you would have something like this:
#set($options = {
"className" : "SpaceName.SurveyClass",
"selectedColumn" : "status", ## not "default" :
"new"
"defaultOrder" : "asc" ## this one is by default
})
I am also assuming that the status property of your class is a Static List with the
following Values: 0=New|1=To be seen|2=Done.
Regards,
Mihai
On Dec 14, 2011, at 10:44 AM, Stéphanie wrote:
Hello,
I have an other question for you. I just create a livetable that show every
page I have in my space. The page are answers from a survey and they have
differents status : "new", "to be seen", "done".
When I go on the page where I have my livetable, I just want to see in
first, pages with "new" status.
This is my code :
#set($collist = ["name", "date", "statut",
"_actions"] )
#set($colprops = {
"name" : { "type":"text", "sortable":true,
"filterable":true,
"link":"view"},
"date" : { "type":"list", "sortable":true,
"filterable":true},
"statut" : { "type":"list", "sortable":true,
"filterable":true},
"_actions" : { "actions": ["edit", "delete"] }
})
I try to add : "default" : "new" but it doesn't work and I really
don't know
how to show the "new pages" in first, so thank you ery much for all person
who will help me.
Best regards,
Stéphanie
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Livetable-order-by-tp7092786p7092786.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