Hi there
I’m facing an odd behavior. I have a class that makes use of a database list field, which in turn uses another class via the “XWiki Class Name”, “Id Field Name” and “Value Field Name”.
While playing around with it, I noticed that “Value Field Name” is what is displayed in the UI, where the “Id Field Name” is what is stored in the object (AFAIKT).
All good as long as the referenced fields are of type “String”, not that much if it is a “Number”.
The class I reference:
- CompanyID (CompanyID: Number)
- Company Name (CompanyName: String)
- Company Short (CompanyShort: String)
As long as “Id Field Name” = “CompanyShort” and “Value Field Name” = “CompanyName”, it works perfectly well (renaming the company name reflects in this object too). Really great!
If I use “CompanyID” in either Field (ID or Name), it stops working immediately …
Any idea why? data type issues? The Number Type of the CompanyID field is “long” … if this is relevant …
Thank you
1 post - 1 participant