Move grid total function definition to grid
Components
Labels
None
Description
Context Information
None
Additional information (do not use)
For backwards compatibility we could still look in old place, when we don't have "totals" option in grid definition.
Attachments
1
relates to
Activity
Show:

Dmitry Andrejev November 30, 2010 at 6:48 PM
Closing released 5.1.1 task.

Alex August 28, 2010 at 9:26 PM
Fix committed to [b]5.1.x branch/b. Commit Message:
Fixes #0000811: Move grid total function definition to grid

Dmitry Andrejev August 2, 2010 at 9:40 PM
Tested good, please commit.

Alex July 31, 2010 at 2:08 PM
Re-assembling gave same patch as current.
Did you reverted all previously applied patches, before testing this one (it's standard test practice)?

Dmitry Andrejev July 30, 2010 at 10:12 PM
Can't apply the patch to 5.1.0
Fixed
Priority
Assignee

Reporter

Developer

Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
811
External issue URL
Fix versions
Affects versions
Created July 23, 2010 at 9:44 PM
Updated December 29, 2024 at 9:17 PM
Resolved November 30, 2010 at 6:48 PM
Currently we have automatic grid totals calculation functionality. To activate it you need:
totals_render_as="grid_total_row" parameter in "m_RenderElement" tag, that renders "grid" block
add "totals" key (possible values are SUM, COUNT, AVG or any MySQL aggregate function) in field declaration in "Fields" property in unit config
Such approach works, but won't allow to have different totals function based on place, where grid is used or special-based.
I propose to move "totals" option to field declaration in grid definition part, where "filter_block" is defined.