cancel
Showing results for 
Search instead for 
Did you mean: 

Where find element ID in FIORI application which was generated by ODATA(Based on CDS, RAP was used)

0 Kudos
1,451

Hello, i recently started to work with FIORI and i was faced with the problem.

1) I have FIORI list report generated by odata.

2) I added controller.js file to make some custom buttons( in addition to another actions( from backend side ) )

3) I want to make some manipulation with the data from UI level in conroller.js, and try to use method byID() this.getView().byId("TableID")

The problem is that there are no View.xml file because my app was generated by ODATA and CDS( with RAP approach ),and how i think i don't need this file because my layout and UI based on CDS annotations. But where i can find elements IDs(for ex. ID of main table on the main screen). Explore in metadata?

NitinBadgeBytes
Newcomer
0 Kudos

I had also faced this issue instead of using this.getView().byId() please use  sap.ui.getCore().byId() & get Your id from run time environment
I hope it will works

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor

Please check out Extending SAP Fiori Elements-Based Apps and use the SAP Fiori tools for implementation.