On 8 Oct 2014 at 06:24:53, Jason Clemons ([email protected](mailto:[email protected])) wrote:
I'd like to do the same :)
-----Original Message----- From: users [mailto:[email protected]] On Behalf Of Bryn Jeffries Sent: Tuesday, October 7, 2014 8:54 PM To: [email protected] Subject: [xwiki-users] DBlist with external query data?
Please forgive my ignorance, but is it possible to use DBList with queries to other databases? I'd very much like to use this element populated with the results from a query to another database running on the same server as XWiki, but the only documentation I can find describes queries of the XWiki database.
No, you cannot do that with DBList. It’s expecting a HQL query actually (and we’ve been needing to add support for XWQL too for a very long time). Another direction could be to look at adding a new type for that, see http://platform.xwiki.org/xwiki/bin/view/DevGuide/CreatingNewXClassPropertyT... (I don’t know if it would work though, it may be too tied to the XWiki data model). Too bad that Computed Field only supports one value... Thanks -Vincent