cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to define a selection limit to a Macro Table in SAPUI5 FPM Odata v4

PedroLazaro
Participant
272

Hi, experts!

I have a freestyle SAPUI5 FPM app consuming an odata v4 service provided by a CAP Project.
I need to set the selection limit for the macro table which the data is listed, because the default value is too low for the customer.

PedroLazaro_0-1742341559863.png

I did some debugging and found the property selectionLimit, but change it did not take any effect to this message above.

At the init method of my controller, I set the selectionLimit like this:
oMacroTable.getTableDefinition().control.selectionLimit = 5000

PedroLazaro_1-1742341829689.png

But when I try to select all records again, the alert message shows as well.

That is the xml code I'm using for the macro table:

PedroLazaro_2-1742342071627.png

Do you know how to properly set the selection limit for a macro table?

Best Regards





Accepted Solutions (0)

Answers (0)