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

calling view method

Hi ,

How to call a method in the view from component controller.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 02:31 PM

    Hi Bharath

    In your view where ever you want to use the method of component controller use this line of code

    wdThis.wdGet<your component controller>Controller().<method in Component Controller>();

    Best Regards

    Chaitanya.A

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      The problem is coming because wdDoinit of comp controller is called first and the view controller's wdDoinit() is called.

      I think you are firing the event in the wdDoInit() of component controller.

      Dont fire the event from wdDoinit of comp controller.

      For testing purpose you can do one thing. create one button in the view and in the action of this button fire the event.

      I hope it should work for you.

      Regards,

      Praveen

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 03:33 PM

    Subscribe the view controller to a component controller event and fire the event in the component controller.

    Armin

    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.