SAP Knowledge Base Article - Public

3357733 - When Sorting The Column Field The Table Goes To The Second Page Instead Of Sorting The Field

Symptom

When customer tries to sort the column field "Invoice Date" under Invoices EC on Utilities Financials facet, the tab goes to the second page unless sorting the column.

Environment

SAP Cloud for Customer

Reproducing the Issue

1. Go to Individual Customer view.
2. Open the "1234" one.
3. Go to Utilities Financials facet.
4. Under Invoices EC sort the field "Invoice Date" as descending.
5. Now you sort it to Ascending.
    --> Observe that the page number is changing from 1 to 2 rather than sorting the field.

Cause

In the 'Invoices' list, there is no lead selection.
So, what is happening is that the first row is getting considered as lead selected.

When you sort, the rows get reorganized.
The UI is displaying the page where the lead selected row exists.

In this case, when we load the TI and go to Utilities Financials facet, Invoice "ABC" is the first row.
After I sort it in ascending order, this moves to page 2 and hence the UI displays this entry and hence jumps to page 2.

Resolution

If the page jump should not happen, then there is a workaround. If you highlight the first row and then perform the sort operation, the UI (display) would not jump to any other page. The rows get reorganized, but we would always see page 1 because in this case, UI will consider lead selected index as 0.

Keywords

Sort, descending, Ascending, Page, Change, Column , KBA , AP-RC-UIF-RT , UI Framework Runtime , How To

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications 2305