Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-647

Move grid total function definition to grid

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.1-B1
    • Component/s: Data Management
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: