Hi,

Erica Usui wrote:
> Hi!
>
> I'm trying to list the users' name in a form, but the name have complement
> (p.e. Name: Carlos Eduardo da Silva / HR - manager). As in a "List of users"
> property, I want to display, when someone is selecting a name, the full name
> and complement, but when displaying in the results I want it to show the
> user's Alias.
>
> So what I did was a class (XWiki.dbClass)  with two properties:
> Name (String) (p.e. Carlos Eduardo da Silva / HR - manager)
> Alias (String) (p.e.Carlos)
> Which I used as a DataBase to the property "Name" in the other class
> (XWiki.formClass).
>
> So, I chose for this property:
> XWiki Class Name: XWiki.dbClass
> Id Field Name: Name
> Value Field Name: Alias
>
> But the result was not as in a "List of Users" property, in which when one
> choose for example "Carlos Eduardo da Silva" the result in the table is
> "Carlos".
> The result was that both, selected and diplayed information, are in this
> example "Carlos".
>   

Perhaps I'm missing something, Erica, but if you are dealing with XWiki 
users, what not simply modify XWiki.XWikiUsers class to  host the new 
information you need to store? You must be careful when you updated this 
class at XWiki update time!

Or create that new dbClass to store new data (position and alias) and 
instantiate it (add an instance of that class) to each XWiki user.

I know this is not what you are asking for, but I'm trying to understand 
what do you want to do. I've tried this Database List properties type in 
a XE 2.6-SNAPSHOT.31892 and it seems to work a expected.

When you talk about "result in the table", what table are you talking 
about? Thanks!

> And another thing... I didn't understand the DB Tree property. One thing
> that worked was:
> XWiki Class Name: XWiki.dbClass
> Id Field Name: doc.fullName
> Value Field Name: Alias
> Parent Field Name: doc.parent
>
> But I don't understand the meaning of that...
>
> Can anyone help me ?
>   

This is the only file where I can find a reference to Tree Property in 
the XWiki ecosystem...

http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties

But it is just in the title of the document. I've trying to get it 
working to no avail. It seems that it allows to assign a value of a 
property by selecting a document from a tree of documents. But I'm not 
able to get it working. Could you try with, let's say, a dbTree based on 
XWiki.XWikiUsers? Thanks!

Just my two cents!

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to