<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I have a CDT with a number of fields one of which is a number. I wish to display</title><link>https://community.appian.com/discussions/f/general/1614/i-have-a-cdt-with-a-number-of-fields-one-of-which-is-a-number-i-wish-to-display</link><description>I have a CDT with a number of fields one of which is a number. I wish to display the sum of this field as the default value in a form and have used the sum() function e.g. =sum(statement.amount). This however results in an ERROR:An error occurred while</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a CDT with a number of fields one of which is a number. I wish to display</title><link>https://community.appian.com/thread/5701?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2013 14:10:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10bc90bf-697c-45b6-8d92-ec73c5609916</guid><dc:creator>grantw</dc:creator><description>Following further investigation there was an error in the CDT definition. The field amount was defined as a multi-value field. Once this was corrected the sum() function works.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a CDT with a number of fields one of which is a number. I wish to display</title><link>https://community.appian.com/thread/5685?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 15:47:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5b703f4-e17b-4fa5-8586-fb00ae103a69</guid><dc:creator>shelzle</dc:creator><description>Using the looping function &amp;quot;reduce&amp;quot; and a custom predicate function that adds the values should do the job.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>