<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>public/stylesheets/report.css</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,15 +3,19 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example1'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_cube(
-  :name =&gt; :regional_sales, 
-  :column_dimension =&gt; :date,
-  :column_hierarchy =&gt; :cy, 
-  :column_hierarchy_constraints =&gt; {
-    :calendar_year =&gt; ['2005','2006']
+&lt;%= render_cube(:regional_sales, :date, :store, 
+  :column =&gt; {
+    :hierarchy =&gt; :cy,
+    :constraints =&gt; {
+      :calendar_year =&gt; ['2005','2006']
+    }
+  },
+  :row =&gt; {
+    :hierarchy =&gt; :region
   },
-  :row_dimension =&gt; :store, 
-  :row_hierarchy =&gt; :region,
   :html_options =&gt; {
     :report_class =&gt; 'report'
+  },
+  :format =&gt; {
+    :gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }
   }) %&gt;
\ No newline at end of file</diff>
      <filename>app/views/demo/example1.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -3,12 +3,18 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example2'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_cube(
-  :name =&gt; :regional_sales, 
-  :column_dimension =&gt; :date,
-  :column_hierarchy =&gt; :fy,
-  :row_dimension =&gt; :store, 
-  :row_hierarchy =&gt; :location,
+&lt;%= render_cube(:regional_sales, :date, :store, 
+  :column =&gt; {
+    :dimension =&gt; :date,
+    :hierarchy =&gt; :fy
+  },
+  :row =&gt; {
+    :dimension =&gt; :store, 
+    :hierarchy =&gt; :location
+  },
   :html_options =&gt; {
     :report_class =&gt; 'report'
+  },
+  :format =&gt; {
+    :gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }
   }) %&gt;
\ No newline at end of file</diff>
      <filename>app/views/demo/example2.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -3,12 +3,16 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example3'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_cube(
-  :name =&gt; :product_sales, 
-  :column_dimension =&gt; :date,
-  :column_hierarchy =&gt; :cy,
-  :row_dimension =&gt; :product, 
-  :row_hierarchy =&gt; :product,
+&lt;%= render_cube(:product_sales, :date, :product,
+  :column =&gt; {
+    :hierarchy =&gt; :cy
+  },
+  :row =&gt; { 
+    :hierarchy =&gt; :product
+  },
   :html_options =&gt; {
     :report_class =&gt; 'report'
+  }, 
+  :format =&gt; {
+    :gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }
   }) %&gt;
\ No newline at end of file</diff>
      <filename>app/views/demo/example3.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -9,12 +9,13 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example4'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_cube(
-  :name =&gt; :product_sales, 
-  :column_dimension =&gt; @col_dimension,
-  :column_hierarchy =&gt; @col_hierarchy,
-  :row_dimension =&gt; @row_dimension, 
-  :row_hierarchy =&gt; @row_hierarchy,
+&lt;%= render_cube(:product_sales, @col_dimension, @row_dimension,
+  :column =&gt; {
+    :hierarchy =&gt; @col_hierarchy
+  },
+  :row =&gt; {
+    :hierarchy =&gt; @row_hierarchy
+  },
   :fact_attributes =&gt; [:sales_quantity],
   :html_options =&gt; {
     :report_class =&gt; 'report'
@@ -24,4 +25,7 @@
     :ch =&gt; params[:ch],
     :rd =&gt; params[:rd],
     :rh =&gt; params[:rh]
+  }, 
+  :format =&gt; {
+    :gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }
   }) %&gt;
\ No newline at end of file</diff>
      <filename>app/views/demo/example4.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -26,12 +26,12 @@
       &lt;p&gt;Dynamic pivot report.&lt;/p&gt;
     &lt;/li&gt;
     &lt;li&gt;
-      &lt;h2&gt;Fact List&lt;/h2&gt;
-      &lt;p&gt;&lt;%= link_to 'Fact List', :action =&gt; 'fact_list' %&gt;&lt;/p&gt;
+      &lt;h2&gt;&lt;%= link_to 'Fact List', :action =&gt; 'fact_list' %&gt;&lt;/h2&gt;
+      &lt;p&gt;List of all facts in the Pos Retail Sales Transactions Fact table&lt;/p&gt;
     &lt;/li&gt;
     &lt;li&gt;
-      &lt;h2&gt;Date Dimension&lt;/h2&gt;
-      &lt;p&gt;&lt;%= link_to 'Date Dimension', :action =&gt; 'date_dimension' %&gt;&lt;/p&gt;
+      &lt;h2&gt;&lt;%= link_to 'Date Dimension', :action =&gt; 'date_dimension' %&gt;&lt;/h2&gt;
+      &lt;p&gt;List all of the records in the Date Dimension table.&lt;/p&gt;
     &lt;/li&gt;
   &lt;/ol&gt;
   </diff>
      <filename>app/views/demo/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@
   &lt;head&gt;
     &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
     &lt;title&gt;ActiveWarehouse: Demo&lt;/title&gt;
-    &lt;%= stylesheet_link_tag 'standard', :media =&gt; 'all' %&gt;
+    &lt;%= stylesheet_link_tag 'report', :media =&gt; 'all' %&gt;
     &lt;%= javascript_include_tag(:defaults) %&gt;
     &lt;script type=&quot;text/javascript&quot;&gt;&lt;%= @content_for_page_scripts %&gt;&lt;/script&gt;
   &lt;/head&gt;</diff>
      <filename>app/views/layouts/demo.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>56c16705d25955a9a2f8295256a92eec237b8c8e</id>
    </parent>
  </parents>
  <author>
    <name>aeden</name>
    <email>aeden@78b0de1e-7a20-0410-a083-82450d3afd0a</email>
  </author>
  <url>http://github.com/bcotton/activewarehouse-demo/commit/338ed0b464ef9155f413f29338774222cadfd9f8</url>
  <id>338ed0b464ef9155f413f29338774222cadfd9f8</id>
  <committed-date>2006-11-13T14:24:01-08:00</committed-date>
  <authored-date>2006-11-13T14:24:01-08:00</authored-date>
  <message>Updated examples to use new render_cube method signature

git-svn-id: svn://rubyforge.org/var/svn/activewarehouse/demo/trunk@68 78b0de1e-7a20-0410-a083-82450d3afd0a</message>
  <tree>d6eda6d1f224024d3f6f138aa489fc7bf598ca3f</tree>
  <committer>
    <name>aeden</name>
    <email>aeden@78b0de1e-7a20-0410-a083-82450d3afd0a</email>
  </committer>
</commit>
