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

How to trigger an action that belongs to another VIew Controller ?

Hello All,

Can someone advise on how I am able to trigger an action in another view controller should a user clicks on a button that belongs to my current view ? What I am trying to achive is to save the contents of my table to the value node when a user clicks on a save button that belongs to another view. Below is what I have attempted to do but obvioulsy its not correct. ANy suggestions will be greatly appreciated. Thank you very much.

<u><b>My wrong attempt</b></u>

IPrivateFuncAirlineTrainView.WDActionEventHandler.ADD_ROW();

from

KWok Wei

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 Jul 17, 2005 at 03:20 PM

    Hi,

    Why can't you write the method at the component controller and call the method ??

    Regards, Anilkumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 17, 2005 at 08:41 PM

    Actions exist only in <b>view </b>controllers. For functionality that should be available to different views, use custom controllers or the component controller.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2005 at 06:04 AM

    Hi Kwok,

    You can do one thing.

    Make one method in your custom or component controller. Then, include all your code under save button action in this method.

    Now, call this method from different view whenever required.

    Regards,

    Bhavik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2005 at 12:39 PM

    You could add the value node to the component controller context. And then use data mapping to store the value node changes of your view in the controller context. Also map the context of the other view to the component controller. In this way the data can be shared between the two views.

    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.