Re: [xwiki-users] XWQL issue

2012-05-14 Thread Vincent Massol
On May 14, 2012, at 12:25 PM, Jeremie BOUSQUET wrote: > If, like me, you want to keep your xwql readable, you can also add this > after assigning the xwql string : > > #set($xwql = " > select ... > > ") > #set($Q="\n") > #set($xwql = $xwql.replaceAll("$Q", " ")) Personally I find this less re

Re: [xwiki-users] XWQL issue

2012-05-14 Thread Jeremie BOUSQUET
If, like me, you want to keep your xwql readable, you can also add this after assigning the xwql string : #set($xwql = " select ... ") #set($Q="\n") #set($xwql = $xwql.replaceAll("$Q", " ")) It will just remove the carriage-return so XWQL parser does not complain, BR, Jeremie 2012/5/14 Jerem

Re: [xwiki-users] XWQL issue

2012-05-14 Thread Jeremie BOUSQUET
I think I just found the problem ... Instead of : #set($findWQL = " from doc.object($classname) as qat ") ... Write this : #set($findWQL = " from doc.object($classname) as qat ") It seems the XWQL parser does not like carriage-return in queries at all ... :) Best regards, Jeremie 2012/5/10 E

Re: [xwiki-users] XWQL issue

2012-05-10 Thread Eugen Colesnicov
try ... where qat.language like 'en' ... :) I don't know why -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/XWQL-issue-tp7532124p7546601.html Sent from the XWiki- Users mailing list archive at Nabble.com.

[xwiki-users] XWQL issue

2012-05-06 Thread Gerritjan Koekkoek
Hi, I fail to get a good understandinding of XWiki Query Language (my goal is to transform working HQL to XWQL) This code is working… {{velocity}} #set($classname = "CdLSATEPublic.CdLSATEPublicClass") #set($findWQL = " from doc.object($classname) as qat ") #set($resultDocuments = $services.q