Skip to Content
author's profile photo Former Member
Former Member

why we need Custom controllers in Model Applications

Hi Friends

In Adaptive RFC Model Application we can use both the controllers for creating contex structure

wat is the main aim for using custom controller

it has any special feature in custom conrollers

i read both the controllers have same functionality n flexibility

any body differentiate these two controllers

n which one is efficient for connecting Model applications

Regards

Narayana

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 07:33 AM

    Hi Narayana,

    There are many situations when you need custom controllers over component controller.

    Suppose you have one DC and you want to make some part of this DC as Public which may include Local context nodes, elements, methods or model context with specified methods to process some functionality. By Interfacing a custom controller with all the exportable methods and context you reach to a certain level of security.

    In this case you are distributing your module in multiple custom controllers which ultimately reduces complexity of programming, code and obviously execution time.

    This is up to the developer, if he/she wants to create custom controllers or not, but yes in certain situations you should go for custom controllers. It is always good to have multiple custom controllers when you are using single DC for different modules.

    Regards,

    Amol

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 06:49 AM

    Hi Narayana,

    Check the similar links below

    Difference between custom controller and interface component

    regards

    Anil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 07:38 AM

    Hi,

    The use of custom controller decreases the complexity in the code. For example, Consider the case in which you have more than one models. If you are using only component controller, all code for model initialization, etc should be written in component controller. But if we use custom controller, we can use one custom controller for one model. If there is only one model, still the modularity is possible by providing one custom controller for each RFCs in model.

    I dont think there is any difference in efficiency between Component and Custom Controller. Both are mainly for sharing data and methods between view controllers .

    Component controller should be there for a component, while custom controller is generated by the programmer on demand

    Regards

    Fahad Hamsa

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      This is more like a MVC Design Pattern issue rather than Webdynpro issue.

      You can even put the coding inside the View without using the controller at all. (e.g. z_get_student_ID)

      However, the whole application will be mess up if you want to call the same method again in the other View. (e,g, z_check_student_grade, which need call z_get_student_ID before the Grade can be displayed)

      Imagine you have 10 Z function and need to be call repeatly in 30 Views.

      Is not a MUST to do a custom contorller, it just a programming pratice.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.