Adding Columns
Given a simple Report Page with one column, proceed as follows to add more columns.
- In Workbench, open the appropriate script, for example data_report_page.divetab.
-
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"
-
Save and Sync to test the script. Here is how the Report page appears in the script.
Here is the result of the new code in DiveTab.
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:
- Adding Column Sets
- What is a Column Set?
- Column Set Code Samples
- Column Set Code Block
- Column Set Tags