{"id":551,"date":"2006-09-04T12:20:50","date_gmt":"2006-09-04T12:20:50","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/docs\/?p=551"},"modified":"2023-05-12T13:24:13","modified_gmt":"2023-05-12T19:24:13","slug":"mrc-tip-working-with-the-csv-file-skeleton","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=mrc-tip-working-with-the-csv-file-skeleton","title":{"rendered":"mrc Tip: Working with the CSV file skeleton"},"content":{"rendered":"<p>Having the ability to customize the views of your data is an important component to mrc&#8217;s tools, and the CSV output feature is no exception.<\/p>\n<p>And, formatting the CSV output in your applications is easy to do with the m-Painter feature.<\/p>\n<p>To start, go to the Manage Reports screen, and click the paint icon next to the report you wish to alter.<\/p>\n<p>Then, in the painter toolbar, click the PAGE drop down list on the right side of the screen.<\/p>\n<p>Click the &#8216;CSV and XML Output&#8217; option.<\/p>\n<p>Now, in this section we can determine whether we are showing grand total level values, adding Total Level Calculations, and the like.<\/p>\n<p>Scroll to the very bottom of the file (after END_DATATABLE_XML) .<\/p>\n<p>To make the changes you want, just remove the appropriate substitution. Make sure to leave the &#8220;&#8221;, as it will hold the place of the data you just removed and keeps the structure of your file intact.<\/p>\n<p>In this example, I will remove the customer number from the grand total level as I am not interested in the overall sum of each customer number.<\/p>\n<p>Save the file, and execute.<\/p>\n<p><strong>*Note: <\/strong>if you ever overwrite the .html on a recompile, the changes you have just made will be erased.\u201d<\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\"><strong>Here is the final product:<\/strong><\/p>\n<p>Note that in the grand total line, the customer number has not been summed.<\/p>\n<p><strong><span style=\"font-family: Verdana;\">Total Level Calculations in CSV Files<\/span><\/strong><\/p>\n<p>Now, if you&#8217;d like, you are also able to utilize Total Level Calculations in a CSV file. To do this, you would use the F_EXPR expression. If you would like to add F_EXPR you would insert it in the same section you edited above. Be sure to remove any quotations around the F_EXPR.<\/p>\n<p><a href=\"https:\/\/www.mrc-productivity.com\/members\/manual\/servletmanual\/Total_Level_Calculations_Servlet_Reports.html\" target=\"_blank\" rel=\"noopener\">Click here to learn more about Total Level Calculations<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having the ability to customize the views of your data is an important component to mrc&#8217;s tools, and the CSV output feature is no exception. And, formatting the CSV output in your applications is easy to do with the m-Painter feature. To start, go to the Manage Reports screen, and&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-551","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=551"}],"version-history":[{"count":5,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/551\/revisions"}],"predecessor-version":[{"id":11751,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/551\/revisions\/11751"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=551"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=551"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}