Hello,

I think I resoved my issue with an include to launch my query:
In my Class in "Computed Field" to display a query in "Custom Display", I 
simply inserted an include function

#set ($HqlQuery ="select distinct doc.fullName, doc.name, doc.creationDate, 
CategorieProp.value, ProcessusProp.value from XWikiDocument as doc
, xxxxxxxxxxxxxxxxxxxxxxx
 order by doc.creationDate  desc")
##
#includeInContext("FormSMQ.MyQuery")
## set ($ResultQuery=$services.query.hql("$HqlQuery").execute())
#if ($listtool.isEmpty($!ResultQuery) || ! $ResultQuery )
  * //(Aucune amélioration)//
#else
  yyyyyyy

and FormSMQ.MyQuery, who's belong to Admin user, contains
{{velocity}}
#set ($ResultQuery=$services.query.hql("$HqlQuery").execute())
{{/velocity}}

Pascal

--------------------------------------------
En date de : Lun 16.11.15, Pascal BASTIEN <pbasnews-xw...@yahoo.fr> a écrit :

 Objet: Full form statements requires programming right issue?
 À: "XWiki Users" <users@xwiki.org>
 Date: Lundi 16 novembre 2015, 11h36
 
 Hi,
 
 I writed an application form with template + class + sheet
 (owner is admin).
 In my Class I use a "Computed Field" to display a query
 result with "Custom Display".
 It is an hql query with select. I know that we must have PR
 to launch a hql query with select but my template + class +
 sheet owner is admin.
 If a "simple" user create a new form (with myClass object)
 he obtain a naughty velocity error: <<Full form
 statements requires programming right>>
 
 How can I resolve this problem? It it a bug?
 
 Thxs for any help
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to