on 2024 Dec 23 11:01 AM
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?
Request clarification before answering.
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.
Then, in the presentation variant, you can specify that it is "line item" and it works !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.