cancel
Showing results for 
Search instead for 
Did you mean: 

How to call the method written in controller from an external js file?

Former Member
0 Kudos

Hi,

     Well i am working on the POC, i have written a function in controller say f1(){......}, now i have an external js file wherein i need to call f1(). please adivce.

regards,

Nagarjun

Accepted Solutions (0)

Answers (1)

Answers (1)

sreehari_vpillai
Active Contributor
0 Kudos

Controller is just another JavaScript file in a SAPUI5 project perspective . All the
functions defined globally in a JavaScript file will be able to be accessed from other JS files from the same scope. Call like f1(<arguments>) simply.