Skip to Content

remove $skip & $top parameters ?

Hello Expert,

Whenever a oData request is made, by default UI5 adds the parameter $skip=0 & $top=100. Is there a way to override this ?

Kindly advice.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • It will only happen if the control supports it.

    for e.g., if you use m.table or m.List or ui.table, it has some feature called threshold & growing.

    If growing property is set to true then on scoll/onclick of load it will get the data based on the threshold you set. Lets say if the threshold is 10, it will fetch the first 10 records and then after scrolling it will fetch from 11 - 20 (10 more records) and how it does it? it uses the top & skip of entityset.

    So you can give a maximum of 1000 or 2000 threshold or according to your requirement else you can set growing to false.

    SAP UI5 recomends to use the growing and threshold to improve the performance. you can read it in the description there and in guidelines as well. So better use the growing & threshold

    https://ui5.sap.com/#/api/sap.m.Table

    BR,
    Mahesh

    Add comment
    10|10000 characters needed characters exceeded