Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Methods in the Component controller

Hello,

When is better call a method in the component controller, than run only a viewu2019s method?

In other words, what kind of methods should to be in the component controller and what kind of methods should to be in the view?

Could you give me some examples?

Regards

Janeth

Former Member
replied

Hi,

All the methods which deals with business logic, calculations, repeated methods for all views will be written in component controller.

for example All the model related methods you will write in component controller.

Actually in view you should not write any method which deals with business logic,it should contain only presentation logic. you will just call the methods in component controller here.

you have to max utilize the existing methods doInit(), doModify() and also some actions like onSelect, onSubmit which deals with view controller.

PradeeP

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question