[xwiki-devs] Adding a dblist property

Ludovic Dubost ludovic at xwiki.org
Sun May 18 03:59:51 CEST 2008


You should probably use a StaticList field and add your domains to the 
Values setting

Ludovic

antoine wrote:
> Hi
>
> We'd like to create a class with a domain property in wich we would like 
> to store a list of domains.
> It looks like tags principle.
> So we want to have a list of domains to let users choose wich domains to 
> attach to each instance.
> But we want this list to evolve and we had like to select these domains 
> from another DB table.
>
> Indeed, we have try to add a dblist property to our class.
> But when we try to create a new object the select list for domains is empty.
> So our request doesn't work.
> Our db table domains is simple, only a field "name".
> Our request is : select name from domains;
>
> Could we please have an example of how to create a class with a dblist 
> property?
>
> Thank for your time
>
> Antoine
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
>   


-- 
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost



More information about the devs mailing list