Last modified by Pascal Robert on 2012/07/19 21:09

From version 10.1
edited by Pascal Robert
on 2007/09/03 17:16
Change comment: There is no comment for this version
To version 11.1
edited by Pascal Robert
on 2007/09/03 17:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -100,7 +100,7 @@
100 100  
101 101  {{/code}}
102 102  
103 -which would bind the zipcode of the address of the person in your sesson to value. Even more interesting are the NSArray operations that Foundation provides. For instance, if your session had a ##public NSArray purchaseAmounts()## that returned an array of ##BigDecimal##s, you could refer to the binding ##value = session.purchaseAmounts.@sum##, which would return the sum of the values of the array. There are several other Array operations available in the Foundation classes, and Project Wonder provides even more in its [[ERXArrayUtilities>>Programming__WebObjects-WOnder-ERXArrayUtilities]] class. For even more advanced KVC capabilities, read the [[WOOgnl>>Project WONDER-Frameworks-WOOgnl]] section of Project Wonder.
103 +which would bind the zipcode of the address of the person in your sesson to value. Even more interesting are the NSArray operations that Foundation provides. For instance, if your session had a ##public NSArray purchaseAmounts()## that returned an array of ##BigDecimal##s, you could refer to the binding ##value = session.purchaseAmounts.@sum##, which would return the sum of the values of the array. There are several other Array operations available in the Foundation classes, and Project Wonder provides even more in its [[ERXArrayUtilities>>Programming__WebObjects-WOnder-ERXArrayUtilities]] class. For even more advanced KVC capabilities, read the [[WOOgnl>>Programming__WebObjects-Project WONDER-Frameworks-WOOgnl]] section of Project Wonder.
104 104  
105 105  A single WOD entry can contain several binding declarations, and a WOD file can contain many entries. For example, here is an excerpt from a real WOD file:
106 106