Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16081

Add support for showing the object count in the live table

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.0.1
    • Fix Version/s: 11.1-rc-1
    • Component/s: LiveTable
    • Labels:
      None
    • Difficulty:
      Trivial
    • Similar issues:

      Description

      The use case for this is: you have a live table that shows the pages that have objects of a given type.

      #set ($options = {
        'className': 'Path.To.MyClass',
        ...
        'queryFilters': ['unique']
      })
      

      A page can have multiple objects of this type ('Path.To.MyClass') so you use the unique query filter to make sure you don't have duplicated rows. But then you want to know how many objects there are on each listed page.

      #set ($columnsProperties = {
        ...
        'doc.objectCount': {'type': 'numeric', 'filterable': false, 'sortable': false},
        ...
      })
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: