on ‎2023 Aug 15 2:28 PM
Hello Everyone,
I've searched all of the ABAP RESTful Application Programming Model documentation and already answered questions here. But none of them could help me to achieve what I need.
I am working on simple List Report with root entity and one child entity. So for the object page I am using facet with lineItem reference of corresponding child records. I've defined and implemented behavior with static and instance actions. In annotations I've defined the actions for the lineItem, so the buttons are part of table toolbar. Now for my question.
I've managed to enable and disable these buttons with get_instance_features method. But I would like to hide the buttons completely based on status field. I've defined boolean virtual elements inside the projection view and I assigned values to these elements inside the corresponding class.
I've used these elements for the @UI.lineItem hidden annotation like this:
@UI:{ lineItem: [{ position: 13 },{ type: #FOR_ACTION, dataAction: 'test', label: 'Reject', hidden: #( testField )}]}
But the buttons are still displayed. When I switch lineItem to identification, then it is working. But the buttons are not showing on the table toolbar, but in the detail of the row. When I use lineItem and hidden annotation with static value false, then the button is not visible as required.
So is there any way to implement dynamic @UI.hidden feature for the lineItem action or not?
Thank you everyone and best regards,
Lubos
Request clarification before answering.
| User | Count |
|---|---|
| 10 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.