Difference between revisions of "Role Formula"

From SmartWiki
Jump to: navigation, search
Line 1: Line 1:
<nowiki>@totalpoints@=@trans.sum(#1224#+#23445#):typename=''@</nowiki>
+
<nowiki>@totalpoints@=@trans.sum(#1224#+#23445#):typename='whatever'@</nowiki>
  
 
In this example, '''totalpoints''' is the custom field we are storing the sum in.
 
In this example, '''totalpoints''' is the custom field we are storing the sum in.

Revision as of 16:02, 10 December 2009

@totalpoints@=@trans.sum(#1224#+#23445#):typename='whatever'@

In this example, totalpoints is the custom field we are storing the sum in. The sum is of all transactions on the user's record of custom field id numbers 1224 and 23445 given a particular transaction type name.