Method to get chosen list is .getListValue('value')

Valdis

> Hello,
> 
> I'm trying to get the value of a property in XWikiPreferences of type 
> Database List that has mutiple-select capability. When I do 
> $xwiki.getUserPreference("property_name"), it returns a string that is a 
> representation of the value, so something like:
> 
> [Value1, Value2, Value4]
> 
> However, I need this to be a list so I can check if 
> property.contains("Value4"). Is there an easy way to get a list from a 
> preference, or do I need to go into the XWikiPreferences page, grab the 
> object and get the value from there?
> 
> Thanks,
> 
> Joshua Rieken
> System Software Developer
> 
> Reynolds and Reynolds
> 6700 Hollister | Houston, Texas 77040
> office 713.718.1800 ext. 72459 | mobile 806.584.3004
> joshua_rie...@reyrey.com
> 
> MAKING BUSINESS BETTER.
> 
> NOTE: The information contained in this e-mail is personal and confidential 
> and may be protected by the attorney-client privilege and/or the work product 
> doctrine. It is for the sole use of the intended recipient. Any review, 
> reliance, or distribution by others or forwarding without express permission 
> is strictly prohibited. If you are not the intended recipient, please contact 
> the sender and delete all copies.
> 
> 
> 
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users


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

Reply via email to