[xwiki-users] Display external data using LiveTable Macro
Hi! Does anybody know how to display some external data using LiveTable macro? I can see in doc, that there is an 'url' alternative datasource (alternative to className and resultsPage), but I cannot find any examples using it. I've tried to write to the text file the JSON output used by the macro, then I put the file on some http server and try to use its url in macro invocation, but it does not work. TIA, R. -- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
Hi Ryszard, On Tue, May 11, 2010 at 13:31, Ryszard Łach <[email protected]> wrote:
Hi! Does anybody know how to display some external data using LiveTable macro? I can see in doc, that there is an 'url' alternative datasource (alternative to className and resultsPage), but I cannot find any examples using it.
I've tried to write to the text file the JSON output used by the macro, then I put the file on some http server and try to use its url in macro invocation, but it does not work.
Have you looked at http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable too? Guillaume
TIA,
R.
-- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
2010/5/11 Guillaume Lerouge <[email protected]>
Have you looked at http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable too?
Yes, it wasn't very helpful for me. I expected, that it would be easy possible to write a small piece of code to fetch some rows from an external table and use LiveTable macro. After some tests I realized, that the logic of paging, fetching next result sets etc. won't work, If I simply generate JSON output from some CGI script - it is at the LiveResults' side. Finally we will use XLM-RPC api to create pages with objects of our xwiki class and use this class with LiveTable macro. Thanks, R. -- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
participants (2)
-
Guillaume Lerouge -
Ryszard Łach