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

reference to view controller

hello,

is it possible to access a view method from a component controller?

I got a reference with the type "IF_WD_VIEW" in my component controller and I need to cast it in the original type of my view to access the view-method for view embedding (dodynamicnavigation)...is it possible?

I know that normally the view methods are only visible in the view controller...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 06:06 PM

    Hi Thorsten,

    Check this out from SAP...

    +Just like the component controller, the view controller contains data and functions. Furthermore, the view controller also has

    ·

    The lifetime of the controller element of a view is restricted to the lifetime of the view. To create simple Web Dynpro applications, it is sufficient if you maintain the component controller and the view controller of a view. The two controllers described below are optional and help you to structure complicated components and applications, thereby increasing their reusability.

    +

    So I dont think you can access the view controller methods from other views.

    Regards

    <b>Raja Sekhar</b>

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 26, 2007 at 06:51 PM

    Refer the below links. It will asnwer your questions:

    calling-view-controller-method-from-component-cont

    Raja T

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2007 at 07:56 PM

    Reply/Reward/close the thread, if your issue is resolved pls.

    Raja T

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:19 AM

    thank you for your answer. I gave you points 😉

    Add a comment
    10|10000 characters needed characters exceeded

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.