I'm using a list template to display some results from an SQL query stored in a multirow with the following code:
template::list::create \
-name project_pipeline \
-multirow project_pipeline \
-elements {
proj_status {
label "Status"
}
cur_proj_count {
label "Count"
aggregate sum
aggregate_label "Total"
}
cur_proj_hours {
label "Hours"
aggregate sum
aggregate_label "Total"
}
prev_proj_count {
label "Count"
aggregate sum
aggregate_label "Total"
}
prev_proj_hours {
label "Hours"
aggregate sum
aggregate_label "Total"
}
}
What would be the best way to go about adding a shared label over some of the columns. For example I would like to have a "2009" label over cur_proj_count and cur_proj_hours and a "2009" label over prev_proj_count and prev_proj_hours.
I can't really think of a better way to explain what I need, hopefully this gets the point across.
Thanks!