Symptom
- Only methods that are defined in BaseController.js file can be extended
- Is there any limitation that can be shared why worklist/object controller files cannot be extended
- Example of errors when using some of the methods of the controller:
~~~Sample error~~~~
- We are able to use override hook methods (onInit, onAfretRendering).
However, we are getting an error message when we try to override the methods from controller, in the console as below -
"Method 'onSave' does not exist in controller XXX.YYY.PROJECTFILE.controller.Object and cannot be overridden" (NOTE: Where XXX.YYY.PROJECTFILE is simply a dummy package name placeholder to make this a general error for reference)
- We are able to use override hook methods (onInit, onAfretRendering).
Read more...
Environment
S/4HANA 1909 or others
Product
SAP S/4HANA 1909
Keywords
"Controller OnSave","Worklist OnSave","MVC controller","controller.Object and cannot be overridden","Method 'onSave' does not exist in controller" , KBA , CA-UI5-COR , Core and Runtime , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.