On Mon, Apr 15, 2013 at 9:48 PM, Jeremie BOUSQUET
<jeremie.bousquet(a)gmail.com> wrote:
Hi,
Sorry have no wiki to check, but should be something like:
$MyObject.get('ApproverList').getValue()
Actually it's
$MyObject.getProperty('ApproverList').value
if you want the raw value.
Hope this helps,
Marius
Or $MyObject.display('ApproverList',
'view')
Br,
Jeremie
Le 15 avr. 2013 10:03, "Добровольский Евгений" <evgdobr(a)gmail.com> a
écrit :
Hi All!
I am trying to solve next task:
I need to compare login of current user (current session login) and login
of user which is stored in the object, which is added to the page.
To get first value i use next function:
xwiki.getUserName(xcontext.getUser(), false)
it is working good!
to store second value i have created object ( which is linked to page) and
added property "List of users" into it.
I can input username into this object, but i cannot get back it.
i try to get it via ${xwiki.getUserName(MyObject.display("ApproverList",
"view"), true)
but it doesn't work ( it returns link to the user profile image)
i have tried other but they don't work too.
Can somebody help me and explain, how to get user name from this object?
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs