Re: [xwiki-users] Get the TEXT of a property instead of the value

2014-09-04 Thread Jason Clemons
Such a simple solution, thank you so much for the response. > On Sep 4, 2014, at 12:07 AM, "Jason Clemons" wrote: > > Thanks, I'll give that a go in the morning and post back > >> On Sep 4, 2014, at 12:05 AM, "Jean SIMARD" wrote: >> >> Try this. >> >> Instead of doing >> >> {{velocity}} >>

Re: [xwiki-users] Get the TEXT of a property instead of the value

2014-09-04 Thread Jason Clemons
Thanks, I'll give that a go in the morning and post back > On Sep 4, 2014, at 12:05 AM, "Jean SIMARD" wrote: > > Try this. > > Instead of doing > > {{velocity}} > #set($d = $xwiki.getDocument('Sandbox.YourDocument')) > #set($obj = $d.getObject('Sandbox.YourClass')) > $obj.getProperty('fiel

Re: [xwiki-users] Get the TEXT of a property instead of the value

2014-09-04 Thread Jean SIMARD
Try this. Instead of doing {{velocity}} #set($d = $xwiki.getDocument('Sandbox.YourDocument')) #set($obj = $d.getObject('Sandbox.YourClass')) $obj.getProperty('field1').getValue() {{/velocity}} do this {{velocity}} #set($d = $xwiki.getDocument('Sandbox.YourDocument')) $d.display(

[xwiki-users] Get the TEXT of a property instead of the value

2014-09-03 Thread Jason Clemons
Hello all, I've been beating my head against the wall on this so I'm hoping someone can chime in and set me straight. I have a static list control on a page and I can easily access it's value using "$obj.getProperty('field1').getValue()" but I really need the TEXT of the property. In other wo