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 readable but that's just me ;) Thanks -Vincent
It will just remove the carriage-return so XWQL parser does not complain,
BR, Jeremie
2012/5/14 Jeremie BOUSQUET <[email protected]>
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 Eugen Colesnicov <[email protected]>
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. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users