on 07-21-2023 4:06 AM
I have created an OData V4 service using Eclipse and used the List Report Page Template to create a project. After that, I used Guided Development to create a Custom Action.
Code:
ClickTest: function(oEvent) { MessageToast.show("Custom handler invoked."); console.log(this.getView()) }When clicking the button, an error occurs.But when i consume OData v2 Service with another project, Everything is working fine.
console.log(this.getView().byId("project3::sap.suite.ui.generic.template.ListReport.view.ListReport::ZYY1_SHIPSCHEDULE--responsiveTable"))How can i get table object in OData V4? Are there any other methods?
I would recommend to set a breakpoint where your "this.getView" is to see what is available with "this.
When you would do this, you see that "this" is a instance of sap.fe.templates.ListReport.ExtensionAPI.
With the Property EditFlow you can use "getView".
With V2, "this" is a different instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.