There is requirement to change behaviour of sap.ui.table depending on no. of rows present in backend being binded to table and a threshold value set. So if no. of rows are less than threshold value, then load all rows data and sorting/filtering done in browser i.e operationMode Client.
But if large no. of rows present exceeding threshold value then load with $top/$skip and sorting/filtering should trigger backend call i.e. operationMode Server.
As per documentation operationMode Auto should have worked but it keeps the sorting/filtering always on Server side irrespective of few rows present which are less than threshold value and so not working purely as Client operationMode.
Is there a direct way in XML view binding to change operationMode to Client/Server depending on count condition or operationMode injected conditionally in
<Table rows="{path: 'SampleEntitySet', parameters: {expand: 'Test123',operationMode: 'Server'}, templateShareable: false, events: {change: '.onTableChange'}}">
Please help in suggestion to solution. Thanks
from Dynamically change sap.ui.table row binding behaviour
No comments:
Post a Comment