![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Get access or point to SAP UI5 control
You are making a small mistake over here. Method addContent is a method available for UI5 controls not over normal DOM elements.
If you want to gain a reference to the button then you can try with the below snippet:
this.getView().byId("<id of the toolbar>").addContent(new sap.m.Button({ <property>:<value> }));
Advertisements