Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12817

Pagination: jump to page with AJAX enabled is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 22.01.01, Upcoming Branch, 18.12.08
    • 18.12.12, 22.01
    • None
    • None

    Description

      On a paginated grid/form which extends CommonDynamicGrid/CommonDynamicForm, with ajaxEnabled=true, the framework builds an input allowing user to jump to a specific page number.

      This input gets a onchange event that triggers a request for the content of the target page, but the VIEW_INDEX parameter is off by one : when asking for page 6 we fetch the content of page 5 (page numbers are zero-indexed, so the value entered by the user should be decremented) :

      In this screenshot, the VIEW_INDEX should be set to "this.value - 1", just like the non AJAX pagination widget does :

      Attachments

        1. image-2023-05-10-08-26-47-399.png
          28 kB
          Florian Motteau
        2. image-2023-05-10-08-24-49-082.png
          40 kB
          Florian Motteau

        Activity

          People

            jleroux Jacques Le Roux
            FloMo Florian Motteau
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: