Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 109: | Line 109: | ||
==== Example: References ==== | ==== Example: References ==== | ||
There’s library Order | There’s library Order containing orders and library Item containing items. Library Order contains a link to library Item and a numeric field Count. | ||
Library Item contains field Price. | Library Item contains field Price. | ||
To calculate the cost of the order, let’s add | To calculate the cost of the order, let’s add Calculation field Sum using the following formula: | ||
<source lang="java"> | <source lang="java"> | ||
#{count} * #{item.price} | #{count} * #{item.price} |