cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP RAP and oData v4 max items (or growing threshold) is not available

Louis-Arnaud
Participant
285

Hello,

I am trying to change the growing threshold of the object page table in a RAP application using OData v4 (as recommended, to the best of my knowledge).

The annotation @ui.presentationVariant with maxItems is not working. I also tried editing the page in Visual Studio Code through the page editor, but the Growing threshold attribute does not exist (I assume this is because I am using OData v4).

"So be it," I thought. No worries—I can create a controller extension and change this parameter with JavaScript. But no! Controller extensions are not available with OData v4.

Am I missing something? The default growing threshold on the object page is 10, which is quite limited.

Why is OData v4 missing so many features?

View Entire Topic
Louis-Arnaud
Participant

Hello, thanks @Sapdreas  for the information. It is indeed possible to create controller extension with odata V4, it is just different to odataV2... We have to relearned everything 🙂 Anyway, I'm sorry because I should have updated my question, because I found out why my presentation variant was not taking into account (and so the max items too). You need to define the table as #PRESENTATIONVARIANT_REFERENCE instead of #LINEITEM_REFERENCE.

LouisArnaud_0-1743169988521.png

Then, in the presentation variant, you can specify that it is "line item" and it works !

LouisArnaud_1-1743170026028.png