on 04-17-2007 9:58 AM
Hi,
Is there any way to call view controller method from component controller method?
Thanks,
Hi Khandal.
You should not make you component controller dependent from a view controller.
But what you can do is to define an event in the component controller. The view
controller can register for this event.
In the stage where you currently want to call the view controller method just fire
the event. In the event handler method in the view controller you can call the
method then.
Why do you need to call a view controller method? Can you give more details
about the scenario?
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Haresh,
It is possible to call the View controller method using component reuse.But it is very difficult to do that because, you want to make component reuse of its own application and need to acces that view and methods also. But this one is not suggestable.
So please create method in component controller and use it wherever you want in other views also. This is best and Good way to do that.
Warm Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.