On Tue, Jun 8, 2010 at 12:14 AM, Marius Dumitru Florea
<mariusdumitru.flo...@xwiki.com> wrote:
>
> I don't know much about live table but the code below was already
> filtering by space if the space name was present on the request (i.e. if
> the page was called with space=SomeSpace in the query string). It looks
> like you can specify query string parameters using the "extraParams"
> live table option (
> http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro ). So you
> should try using the default data source (XWiki.LiveTableResults) with
> extra query string parameters:
>
> #set($options = { "extraParams":"space=Software",
>                   "translationPrefix" : "xe.index.",
>                   "rowCount": 15 })
>
> (of course, this code should be place in the table page, before the call
> to livetable macro)
>
> Hope this helps,
> Marius


I tried this, however it didn't quite work.  I did end up looking
further at the live table parameters on the page you referenced and
found another way.  I used the "topFilters" parameter to add my own
hidden input box to be used as a filter for the livetable:

#set($options = { "topFilters":'<input type="hidden" title="Filter
Software Space" size="${colprop.size}" name="doc.space"
id="xwiki-livetable-allsoftwaredocs-filter-5" value="Software" />',
                  "translationPrefix" : "xe.index.",
                  "rowCount": 15 })

Thanks,
- James Cuzella
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to