Sales, G. (Grant) wrote:
  Not sure what the ; and : are for but they seem to not
wanna be in
 there. 
They can be quite confusing not knowing what's happening.
Your velocity script is writing output which is then parsed as XWiki
Syntax. Those ; and : are XWiki syntax for creating definition lists.
 So other then that, works good, thanks for the help. If I already called
 #set($class = $doc.getObject('ShiftLog.ShiftLogClass').xWikiClass) in
 another part of the Doc can I just use
 class.getxWikiClass().MyProperty.prettyName?
 But I do have it working with what you showed me below.
 Thanks!
 -----Original Message-----
 From: devs-bounces(a)xwiki.org [mailto:devs-bounces@xwiki.org] On Behalf
 Of Guillaume Lerouge
 Sent: Thursday, June 03, 2010 10:59 AM
 To: XWiki Developers
 Subject: Re: [xwiki-devs] Calling only one property
 Hi,
 On Thu, Jun 3, 2010 at 17:46, Sales, G. (Grant)
 <Grant.Sales(a)us.ing.com>wrote;wrote:
  So can you display in the same way you would in
the loop?
 :$prop.prettyName('MyProperty')
 ;$doc.display('MyProperty')
 
 This should do the trick:
 #set($myClassDoc = $xwiki.getDocument('Some.Class'))
 :$myClassDoc.getxWikiClass().myProperty.prettyName
 ;$doc.display('MyProperty')
  One mode for editing, one for input.
 
 You can use the same code for both display and input.
  I have about 8 properties and want to put them in
to a nice HTML 
 table.
 Why don't you use XWiki's table syntax?
 |=Prop|=Value
 | $myClassDoc.getxWikiClass().myProperty.prettyName
 | $doc.display('MyProperty')
 Guillaume
  -----Original Message-----
 From: devs-bounces(a)xwiki.org [mailto:devs-bounces@xwiki.org] On Behalf 
  Of Guillaume Lerouge
 Sent: Thursday, June 03, 2010 10:23 AM
 To: XWiki Developers
 Subject: Re: [xwiki-devs] Calling only one property
 Hi,
 On Thu, Jun 3, 2010 at 15:23, Sales, G. (Grant)
 <Grant.Sales(a)us.ing.com>wrote;wrote:
 Here is how you filter out one dead property (or hide it)
 #foreach($prop in $class.properties)
 #if($prop.getName() != "unused_author")  ; $prop.prettyName
  : $doc.display($prop.getName())
 #end
 #end
 How can you call just the properties you want with out using a for
 each loop?
 
 Let's say you have a property called "myProperty", you can invoke it
 using the following code :
 $doc.display('myProperty')
 Guillaume
> Grant Sales
> Security Operations Analyst
> ING
> 20 Washington Ave South
> Minneapolis, MN 55401
> Tel: 612.342.7889
> Fax: 612.342.3428
> Cell: 320.761.0966
> Email: grant.sales(a)us.ing.com
> 
www.ing-usa.com
> ING. Your future. Made easier. (r)
>
>
>
> ---------------------------------------------------------
>
> NOTICE: The information contained in this electronic mail message is 
 
confidential and intended only for certain recipients.  If you are
 not
 an intended recipient, you are hereby notified that any disclosure,
 reproduction, distribution or other use of this communication and
 any attachments is strictly prohibited.  If you have received this
 communication in error, please notify the sender by reply
 transmission
 and delete the message without copying or disclosing it.
 ====================================================================
 == ======================
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs
 
 --
 Guillaume Lerouge
 Sales - XWiki SAS
 Skype: wikibc
 Twitter: glerouge
 
http://guillaumelerouge.com/
 _______________________________________________
 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
  
 --
 Guillaume Lerouge
 Sales - XWiki SAS
 Skype: wikibc
 Twitter: glerouge
 
http://guillaumelerouge.com/
 _______________________________________________
 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