{"id":871,"date":"2008-04-25T13:07:33","date_gmt":"2008-04-25T20:07:33","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/books\/?p=871"},"modified":"2010-11-17T19:11:09","modified_gmt":"2010-11-18T02:11:09","slug":"15-9-summary-field-objects","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/15-9-summary-field-objects\/","title":{"rendered":"15.09 Summary Field Objects"},"content":{"rendered":"<h2>Understanding the Summary Field Classes<\/h2>\n<p>The summary field classes are referenced with the SummaryField property of the DataDefinition class.<\/p>\n<p>         <a href=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2008\/Ch15\/image025.png\"><br \/>\n            <img decoding=\"async\" src=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2008\/Ch15\/image026.gif\"><br \/>\n            <\/img><br \/>\n         <\/a><br \/>\n         <b>Figure 15-13. The Summary Field classes.<\/b><\/p>\n<p>The SummaryField property is a collection of SummaryFieldDefinition objects. Each object contains all the information about each summary field: the field, the summary operation, etc. Unfortunately, it is missing one key piece of data: the section it is located in. There are no properties to tell you if it is a subtotal or a grand total. This is an important piece of information that you need to know about a field. To see how much information is provided to you, look at Figure 15-14. It is the output of the Mapping application for the SummaryField collection. You can see that there is no way to determine which fields are subtotals and which ones are grand totals.<\/p>\n<p>         <a href=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2008\/Ch15\/image027.png\"><br \/>\n            <img decoding=\"async\" src=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2008\/Ch15\/image028.jpg\"><br \/>\n            <\/img><br \/>\n         <\/a><br \/>\n         <b>Figure 15-14. The summary fields mapping output.<\/b><\/p>\n<p>While accessing all the summary fields from the DataDefinition class is possible, you aren&#8217;t given enough information to make it practical. It is better to reference these fields from within the sections that they are located in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding the Summary Field Classes The summary field classes are referenced with the SummaryField property of the DataDefinition class. Figure 15-13. The Summary Field classes. The SummaryField property is a collection of SummaryFieldDefinition objects. Each object contains all the information about each summary field: the field, the summary operation, etc. Unfortunately, it is missing one [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,40],"tags":[],"class_list":["post-871","post","type-post","status-publish","format-standard","hentry","category-chapter-15-runtime-report-customization","category-crystal-reportsnet-2008","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/comments?post=871"}],"version-history":[{"count":1,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":1792,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/871\/revisions\/1792"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}