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

Column totals block customization issues

    XMLWordPrintable

    Details

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

      Description

      Recently I was trying to create custom block to display totals under one of the columns in grid I was working on.

      Here are several problems I'm came across trying to do that:

      • attempt to define block and give it's name in "total_block" in column definition failed (code doesn't even look there)
      • I somehow managed to get it working, but I asked me to place "'" (single quotes) around inside my block, plus placing "," after that all.

      I've managed to fix that inconsistencies and here is the patch.

      To Test:

      1. Add totals_render_as="grid_total_row" parameter to "grid" block rendering
      2. Add totals="SUM" on any reasonable field
      3. Add total_block="grid_custom_total_td" to that field definition in grid

      Now you must see that custom block content as total under your column. If custom block isn't defined, then default block must be shown (verify that too).

      Same override problem issue with column header block (that one with sorting arrow). Combined patch attached for both issues.

        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: