[xwiki-users] Filter a livetable
Hello, I've a table with some fields, and one of its fields is "name". When I load my livetable, I want to only have the line where the name's value is "Stephanie" (for example). I don't want to have the others line where the name's value isn't "Stephanie". I've tried to play with "extraParams" like that : #set($options = { "className":"Code.ApplicationClass", "extraParams":"name=Stéphanie", "tagCloud":true, "translationPrefix":"ApplicationsLiveTable.", "rowCount": 20 }) But this doesn't work. Do you have an idea of how I can do this ? Thanks, Stéphanie -- View this message in context: http://xwiki.475771.n2.nabble.com/Filter-a-livetable-tp7579401.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello, Maybe by adding "&" : "extraParams":"&name=Stéphanie" I'm not sure but you can try Mathieu On Tue, 5 Jun 2012 06:21:43 -0700 (PDT), Stéphanie <[email protected]> wrote:
Hello,
I've a table with some fields, and one of its fields is "name". When I load my livetable, I want to only have the line where the name's value is "Stephanie" (for example). I don't want to have the others line where the name's value isn't "Stephanie".
I've tried to play with "extraParams" like that :
#set($options = { "className":"Code.ApplicationClass", "extraParams":"name=Stéphanie", "tagCloud":true, "translationPrefix":"ApplicationsLiveTable.", "rowCount": 20 })
But this doesn't work. Do you have an idea of how I can do this ?
Thanks, Stéphanie
-- View this message in context: http://xwiki.475771.n2.nabble.com/Filter-a-livetable-tp7579401.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hello, Thank you, it's only the character "&" that was missing ^^ Sometimes, it seems too easy when you have the answer :D And if I want to have all the line where the name is "Stephanie" or "Marie". I don't know if I can filter my livetable like that, but if someone has a solution, I'm in ! Thanks, Stéphanie 2012/6/5 <[email protected]>
Hello,
Maybe by adding "&" : "extraParams":"&name=Stéphanie"
I'm not sure but you can try
Mathieu
On Tue, 5 Jun 2012 06:21:43 -0700 (PDT), Stéphanie <[email protected]> wrote:
Hello,
I've a table with some fields, and one of its fields is "name". When I load my livetable, I want to only have the line where the name's value is "Stephanie" (for example). I don't want to have the others line where the name's value isn't "Stephanie".
I've tried to play with "extraParams" like that :
#set($options = { "className":"Code.ApplicationClass", "extraParams":"name=Stéphanie", "tagCloud":true, "translationPrefix":"ApplicationsLiveTable.", "rowCount": 20 })
But this doesn't work. Do you have an idea of how I can do this ?
Thanks, Stéphanie
-- View this message in context: http://xwiki.475771.n2.nabble.com/Filter-a-livetable-tp7579401.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Stéphanie ROULLAND 06.74.85.37.90 ------------------------- Contrat de professionnalisation DCNS Ingénieur domaine collaboratif 02.29.05.42.23 ------------------------- Elève ingénieur ENIB 3ème année cycle ingénieur Option informatique
Hello,
Thank you, it's only the character "&" that was missing ^^ Sometimes, it seems too easy when you have the answer :D
And if I want to have all the line where the name is "Stephanie" or "Marie". I don't know if I can filter my livetable like that, but if someone has a solution, I'm in !
and in addition: How can I filter all results for the current logged in user? Thanks, Moritz
Hello, Problem is that the livetable macros append the conditions about columns from extraParams with "and" so I don't think you can do an "or" using this method. You might be able to achieve what you want by customizing XWiki.LiveTableResults and providing an additional where clause to the #gridresultwithfilter macro, unless someone has a better idea. You can either customize this page or copy and rename it. To use the new one you could provide an "url" parameter to the livetable to pass in the new results page name and parameters. Jeremie 2012/6/5 Stéphanie Roulland <[email protected]>:
Hello,
Thank you, it's only the character "&" that was missing ^^ Sometimes, it seems too easy when you have the answer :D
And if I want to have all the line where the name is "Stephanie" or "Marie". I don't know if I can filter my livetable like that, but if someone has a solution, I'm in !
Thanks, Stéphanie
2012/6/5 <[email protected]>
Hello,
Maybe by adding "&" : "extraParams":"&name=Stéphanie"
I'm not sure but you can try
Mathieu
On Tue, 5 Jun 2012 06:21:43 -0700 (PDT), Stéphanie <[email protected]> wrote:
Hello,
I've a table with some fields, and one of its fields is "name". When I load my livetable, I want to only have the line where the name's value is "Stephanie" (for example). I don't want to have the others line where the name's value isn't "Stephanie".
I've tried to play with "extraParams" like that :
#set($options = { "className":"Code.ApplicationClass", "extraParams":"name=Stéphanie", "tagCloud":true, "translationPrefix":"ApplicationsLiveTable.", "rowCount": 20 })
But this doesn't work. Do you have an idea of how I can do this ?
Thanks, Stéphanie
-- View this message in context: http://xwiki.475771.n2.nabble.com/Filter-a-livetable-tp7579401.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Stéphanie ROULLAND 06.74.85.37.90 ------------------------- Contrat de professionnalisation DCNS Ingénieur domaine collaboratif 02.29.05.42.23 ------------------------- Elève ingénieur ENIB 3ème année cycle ingénieur Option informatique _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (5)
-
Jeremie BOUSQUET -
mathieu.canzerini@intech.lu -
Moritz Hesse (EA GmbH) -
Stéphanie -
Stéphanie Roulland