Thanks for your answer. If I set the wiki to query with this API, I will get all of the users of the main wiki in the suggests. But I want only get the workspace users. Is it possible ? Thank you. On Mon, 4 Jun 2012 16:02:01 +0200, Ludovic Dubost <[email protected]> wrote:
Yes,
your users are in the main wiki. In DBListClass you cannot query the global wiki. You will need to write a customer displayer script and declare it in your class
An example of customer displayer is here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Multiselect+custom+disp...
Your custom displayer will need to query the main wiki using a specific search API (in the XWiki object) which allows to set the wiki to query.
Ludovic
2012/6/4 <[email protected]>:
Hello everybody,
Here is my problem : I'm in a workspace. I've created a class with a database list field. I've written the HQL query : -> select obj.name from BaseObject obj where obj.className='XWiki.XWikiUsers' And when i'm in edit mode, the suggest says me : "no results !" when i'm writing a username.
I wonder if this problem is related to the difference between local users (= workspace users ?) and global users (= wiki users ?).
Thanks for your attention
M.Canzerini
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users