Calculation field: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 109: Line 109:


==== Example: References ====
==== Example: References ====
There’s library Order – with orders and library Item – with items. Library Order contains a link to library Item and numeric field Count.
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 calculable field Sum using the following formula:  
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}

Navigation menu