Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-655

Column filter is not refreshed when paginable in nuxeo-data-table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.1
    • Fix Version/s: 2.2.8, 2.3.2
    • Component/s: UI

      Description

      1. install Nuxeo
      2. use the following code in a element and display it in a document page:
            <nuxeo-page-provider id="bookPP"
                                 provider="allDocs"
                                 enrichers="thumbnail"
                                 page-size="40"
                                 schemas="dublincore,book">
            </nuxeo-page-provider>
        
            <nuxeo-data-table id="table" nx-provider="bookPP"
                              empty-label="[[i18n('book.noBook')]]"
                              empty-label-when-filtered="[[i18n('book.noBook')]]"
                              on-row-clicked="_navigate"
                              paginable>
                
              <nuxeo-data-table-column name="[[i18n('book.title')]]" flex="100" filter-by="dublincore_title" sort-by="dc:title" >
                <template>
                  <nuxeo-document-thumbnail document="[[item]]"></nuxeo-document-thumbnail>
                  <a class="title ellipsis">[[item.title]]</a>
                </template>
              </nuxeo-data-table-column>
              <nuxeo-data-table-column name="[[i18n('book.publicationDate')]]" flex="100" filter-by="book:publicationDate" sort-by="book:publicationDate">
                <template>
                  <nuxeo-date datetime="[[item.properties.book:publicationDate]]"></nuxeo-date>
                </template>
              </nuxeo-data-table-column>
            </nuxeo-data-table>
        

        In this case the allDocs is the default provider when creating one in Studio.

      3. when searching without the paginable flag the search is immediate, when adding the paginate flag then it does not display anything.

      Expected result: with or without the paginable flag the result should be returned

      Workaround: clicking on the arrow next to the filter field refreshes the result. But this workaround may not be practical when the data table is used inside a nuxeo-results element.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m