Adding Columns

Given a simple ClosedReport Page with one column, proceed as follows to add more columns.

Example of a Report page with two columns.

  1. In Workbench, open the appropriate script, for example data_report_page.divetab.
  2. Add new dimensions by typing the dimension tag and a string with the column name from the cPlan for each dimension. For example:

    dimension "Resp Team"

    dimension "Vendor"

  3. Save and Sync to test the script. Here is how the Report page appears in the Closedscript.

      report-page { 
        title "Report Page" 
        cplan "/cplans/basic_102.cplan" 
        
        dimension "Corporate Product Group" 
        dimension "Resp Team" 
        dimension "Vendor" 
        
        text column = "Cases" 
      } 

Here is the Closedresult of the new code in DiveTab.

The result after two dimensions are added to the Report page.

In a similar fashion, you can add more summary columns using the text and column tags. For example:

  text "Total Cost"  column = "Cost" 
  text "Cases Sold <br> Last Year column = "Cases Y Y-1" 
  text column = "Net Sales" 

See also: