on 04-21-2023 4:33 AM
Hello,
I have developed an app using restful abap( V2,managed) which has a list report(orders) and object page(line items as table) . My requirement is to give user an option to upload the line items from an excel.
I am using the following notes to achieve this
https://blogs.sap.com/2022/01/27/excel-upload-using-rap-part-2/
but while trying to create 'Excel Upload' button on the table tool bar of the object page(line items table) , I am having issues.
I was able to create the button on the initial list report(orders), but unable to create it on the table tool bar of the object page. Please let me know what am i missing.
This is how my code looks in BAS
Hi Ramesh,
Please refer the below UI5 documentation for enabling actions in object page.
Enabling Actions Added Using Extension Points - Documentation - Demo Kit - SAPUI5 SDK
"sap.ui5": {
"extends": {
"extensions": {
"sap.ui.controllerExtensions": {
"sap.suite.ui.generic.template.ObjectPage.view.Details#my_app::sap.suite.ui.generic.template.ObjectPage.view.Details:: <entity set>": {
"controllerName": "my_app.ext.controller.DetailsExtension",
"sap.ui.generic.app": {
"<entity set>": {
"EntitySet": "<entity set>",
"Header": {
"Actions": {
"<Action 1>": {
"id": "<id>",
"text": "<button text>",
"press": "<handler function>",
"applicablePath": "<entity type property>"
}
}
},
"Sections": {
"<entity type association>::com.sap.vocabularies.UI.v1.LineItem": {
"id": "<SmartTable Facet ID>",
"Actions": {
"<Action 2>": {
"id": "<id>",
"text": "<button text>",
"press": "<handler function>",
"requiresSelection": true,
"applicablePath": "<entity type property>"
}
}
}
}
}
}
}
}
}
}
}
Thanks,Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.