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

    • Improvement
    • Resolution: Fixed
    • Major
    • 11.1-rc-1
    • 11.0.1
    • LiveTable
    • None
    • Trivial

    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

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

              Dates

                Created:
                Updated:
                Resolved: