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

Multiple line item selection using CDS Annotations

rameshputta
Participant
0 Likes
6,804

Hi,

I am developing Fiori screens using RAP and CDS annotations.

I am showing the header information in the list page and line items in the object page.

Currently, I can only select one line item at a time. My requirement is to be able to select multiple line items

and click on a custom button to process them further. Please let me know if multiple selection of the line items

is possible, if yes, appreciate if you could provide any examples you may have.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member611643
Participant

Hello.

You can do it on the front-end side, in the manifest.json file.

You just need to find the following hierarchy there and use the "multiSelect" property:

"sap.ui.generic.app": {
"pages": {
"ListReport|...": {
"component": {
"settings": {
"tableSettings": {
"multiSelect": true
}
}
}
}
}
}
0 Likes

Also, you need #CHANGE_SET property in UI annotation, in case your custom button will be defined as abap rap action(which is defined in behavior pool of root entity object)

@UI.lineitem{ position: 10, type: #FORACTION, label: 'customtext', dataAction: 'behaviorpoolabaprapaction', invocationGrouping: #CHANGE_SET }

Joel_John
Participant
0 Likes
I tried this and it doesn't work in the value help.
AbhishekSharma
Active Contributor
0 Likes

Hi rameshputta

Please have look to below Post talking about #CHANGE_SET as suggested by marek_lukac

https://blogs.sap.com/2023/01/19/abap-restful-application-programming-model-change_set/

Thanks-

Abhishek