0
edits
Changes
no edit summary
* Subject: @subject@<br>
* Status: @status@<br>
* Details: @Details@<br>
* Start Date: @startdate@<br>
* End Date: @enddate@<br>
* Transaction ID: @transid@<br>
* Transaction Type Name: @transtype@<br>
* Transaction Type ID: @transtypeid@<br>
* Last Modified: @trsts@ (transaction time-stamp)<br>
* Custom Fields: @''customfieldname''@ (see note below)<br>
Transactions are often displayed as a list, which can be done using the following syntax:
[#(?object=transaction;::orderby=fieldname;::criteria=typename='"''thistypename'''" and statusname="Submitted")<tr><td>~subject~</td><td>$customfieldid$</td></tr>#]
==Examples==
===UTA Transactions===
To retrieve the '''Level 1''' {{l1}} transactions at '''Level 2'''{{l2}}:
@parent.[#(?object=transaction)<tr><td>~details~</td><td>~subject~</td><td>~startdate~</td></tr>#]@
#]@
To count the '''Level 1''' transactions at '''Level 1''':
@trans1.count(trstransid):trstranstype=''transtypeid''@
* '''Where''' transtypeid is the transaction type id of the transaction you wish to count.
To count the '''Level 2''' transactions at '''Level 2''':
@trans2.count(trstransid):trstranstype=''transtypeid''@
To count the '''Level 1''' transactions at '''Level 2''':
@parent.trans1.count(trstransid):trstranstype=''transtypeid''@
Example:
@trans2.count(trstransid):trstranstype=544@
===Contact/Account Transactions from a UTA===
'''Note''': Transactions on '''Companies''' or '''Contacts''' associated with a [[UTA]] can be displayed in web page view. The transaction does not have to be directly associated with the '''Level 1''' item.
<tr><!--~typename~--><td>$1041842$</td><td>$1041843$</td><td>$1041844$</td><td>$1041845$</td></tr>
#]
==Performing Calculations==
You can obtain <u>display</u> a Sum (for example) of the values in a [[Custom Field]] for all transactions associated with a Company/Contact using [[sscalculation]]within either a [[Web Page View]] or [[Custom Field Type: Read Only – System Variables|Read Only - System Variables]] field:
<pre>
<!--@sscalculation( [#(?object=transaction;)$add this$+#]0)-->
</pre>
* '''Important:''' There <u>must</u> be a space prior to the opening square bracket.
* Also: when summing values don't forget the zero at after the end of the statementclosing square bracket. For example, if there are transactions with values of 10, 15 and 20 the statement between the square brackets would be translated as follows:
::''[#(?object=transaction;)$add this$+#]'' becomes ''10+15+20+''
:so the 0 at the end ensures that the statement evaluated doesn't end with a plus sign (which will fail). '''Note''': You can also use [[sscalculation]] to format the display of dates
If you are using want to store the value on the Company/Contact record you should use a [[Calculated Value]] field use the following:
( [#(?object=transaction;)$add this$+#]0)
* '''NOTE''': The [[Calculated Value]] will only be updated when the company Company/Contact record is saved, not . '''Not''' whenever a [[Transaction]] is created.
==See Also==