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

Introduce an API to refresh a livetable

    Details

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

      Description

      Refreshing a livetable from javascript is a frequent need. However we don't have an API for that, so developers write:

      var end = livetable.limit;
      var start = Math.max(livetable.lastOffset, 1); 
      livetable.clearCache();
      livetable.getRows(start, end, start, end); 
      

      (example coming from http://markmail.org/message/3snpauu2efjmz2iu)

      It would be better to have a method called refresh().

        Attachments

          Activity

            People

            • Assignee:
              gdelhumeau Guillaume Delhumeau
              Reporter:
              gdelhumeau Guillaume Delhumeau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: