On Mon, Aug 19, 2013 at 1:45 PM, Tim Dudgeon <tdudgeon.ml(a)gmail.com> wrote:
  Thanks for response.
 I'm just starting to get to grips with xwiki, so sure I'm not necessarily
 going in the right direction. 
  But I was wanting to generate some data with groovy
(lets assume its  query
 of an external database) and then display the results in livetable. 
The data that is displayed in the live table is quite disconnected
from the live table. The only requirement is that the data is in JSON
format and that it follows the expected structure. But you can
generate the JSON using the scripting language of your choice and from
whatever data you have. As documented on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HParam…
you have two ways to specify where the live table should take the data
from: either the "resultPage" parameter or the "url". So you can put
for instance the Groovy code that queries the external database and
generates the JSON in a wiki page and specify it as the value of the
"resultPage" parameter.
Hope this helps,
Marius
 Tim
 On 19/08/2013 07:33, Marius Dumitru Florea wrote:
 The live table macro,
 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro ,
 is a Velocity macro so it's normal that you've seen only Velocity
 examples. It's also a very complex macro so rewriting it in Groovy is
 not worth the effort and I don't think it makes much sense. Why do you
 need to generate the live table from Groovy? Maybe there are
 workarounds.
 Hope this helps,
 Marius
 On Sat, Aug 17, 2013 at 5:26 PM, Tim Dudgeon <tdudgeon.ml(a)gmail.com>
 wrote:
 Are there any examples of how to use livetable with groovy?
 The only examples I can find are for velocity.
 Thanks
 Tim
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users 
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users 
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users