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 Jeremie BOUSQUET <jeremie.bousquet(a)gmail.com>
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 <ecolesnicov(a)gmail.com>
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
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users