Move grid total function definition to grid

Components

Labels

Description

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.

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
  • 23 Jul 2010, 10:22 PM

Confluence content

mentioned on

Phabricator

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

Alex

Reporter

Developer

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

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

Flag notifications