Changes for page Development-WO Component-Code Template and WODs
Last modified by Pascal Robert on 2012/07/19 21:09
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -118,7 +118,7 @@ 118 118 119 119 {{/code}} 120 120 121 -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 {{code language="none"}}public NSArray purchaseAmounts(){{/code}} that returned an array of {{code language="none"}}BigDecimal{{/code}}-s, you could refer to the binding {{code language="none"}}value = session.purchaseAmounts.@sum{{/code}}, 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>>doc:documentation.Home.Frameworks.Project Wonder.WOnder-ERXArrayUtilities.WebHome]] class. For even more advanced KVC capabilities, read the [[WOOgnl>>doc:documentation. Home.Frameworks.WOOgnl Framework.WebHome]] section of Project Wonder.121 +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 {{code language="none"}}public NSArray purchaseAmounts(){{/code}} that returned an array of {{code language="none"}}BigDecimal{{/code}}-s, you could refer to the binding {{code language="none"}}value = session.purchaseAmounts.@sum{{/code}}, 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>>doc:documentation.Home.Frameworks.Project Wonder.WOnder-ERXArrayUtilities.WebHome]] class. For even more advanced KVC capabilities, read the [[WOOgnl>>doc:documentation.WOOgnl Framework]] section of Project Wonder. 122 122 123 123 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: 124 124