cancel
Showing results for 
Search instead for 
Did you mean: 

How I change default $top value in SAP CDS Service?

karahan_btp
Discoverer
0 Kudos

Hi folks,

Anybody help me for this question "How I change the default $top value in SAP CDS Service?",

I developed a new sap cap application but I cannot change the default "$top" parameter value as shown below image;

thanks

View Entire Topic
akuller_q
Participant
0 Kudos

Even if I find the 30 data records a bit strange, the standard is 100. I have faced the same challenge in the past.

Quote: https://ui5.sap.com/#/topic/91f0d8ab6f4d1014b6dd926db0e91070


The model has a default size limit to avoid too much data being rendered on the UI. This size limit determines the number of entries used for the list bindings. The default size limit is 100 entries.

..
To change this behavior, you can either set a size limit in the model by using oModel.setSizeLimit or set thelength property of the oBindingInfoparameter of the sap.ui.base.ManagedObject#bindAggregationmethod.