Skip to Content
0
Jan 23, 2023 at 09:56 PM

Side effect after executing a bound action: How to trigger sorting of result list?

187 Views Last edit Jan 31, 2023 at 10:07 AM 2 rev

Hello Fiori Elements Experts,

my sample GitHub repository: bookshop-demo contains a CAP application with an OData V4 service for Roles. In the sample Fiori Elements app http://localhost:4004/webapp/fiori-latest.html#V4Role-manageUI5latest that I've added the bound Actions countUp and countDown that change the value shown in column count for the selected Entity. This actions are annotated with a side effect as documented in Side Effect Annotations: Examples -- Side effect after executing an action.

screenshot-2023-01-23-at-223434.png

When I configure the sorting for column count to descending the table is correctly sorted:

screenshot-2023-01-23-at-224820.png

But when I click countUp twice for the entry with the initial count value of 2 the count is increased to 4 but the sorting isn't updated:

screenshot-2023-01-23-at-224741.png

It seems that only the entity changed by the action is updated but not the whole table to also get a correct sorting. Is there a way to trigger a complete re-biding of the table to get a correct sorting?

Best Regards
Gregor