on 09-22-2014 2:24 PM
Hi Experts,
How can I redefine a method of DataManager.js / Formatters.js file in SAP FIORI wave 2 applications?
Regards,
Puneet Jain
Hi Puneet,
I hope you are referring to Fiori My Leave Request Application.
These files are not generic across all Fiori applications.
How to override any function in DataManager.js?
You can do this oninit() of your extended controller.
example, you can define like:
hcm.emp.myleaverequests.utils.DataManager.somefunctionName = function(){
//your function logic..
}
Please make sure that overrides will not have adverse effects on the application.
Best Regards,
Sunil B N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Puneet,
There's also another way to override functions in DataManager.js.
Basically what I did was
You can find more detail in my blog post here
Hope this gives you another alternative to overriding functions in your DataManager.js file.
Regards,
Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.