
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Call Event Function from Another Method in Controller in SAP
It is advised not to call the event function from any other function but what you can do is refactor the event function implementation in a separate function and call that from any other function as shown below:
Example
BtnPress: function(oEvent) { // Separate the implementation in the helper function this.btnPressHelper(); } // Define the helper btnPressHelper: function() { //logic here } // call the helper from whichever function you want to get the desired output PerformSomething: function() { this.btnTapHelper(); }
Advertisements