Skip to Content

how to call a custom controller method from view

Hi,

I ve created a simple web service and consumed it in a model. Mapped the input & output parameters to custom controller context which in turn mapped to component controller's context which in turn to view's contexts.

How to call a custom controller method from view?

Please explain the syntax.

Regards,

Manoj.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 27, 2014 at 11:14 AM

    Dear Manoj,

    if Custom Controller Name is AbcCust and method is getAbc()

    then

    wdThis.wdGetAbcCustController().getAbc();

    Thanks,

    Patralekha

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Manoj,

      yes it makes sense to create a custom node layer between your model and view. So if you change your WS Interface you only have to change your mapping and your view won't get invalid immediately.

      By the way my first name is Tobias. My user was created wrong 😀.

      Regards

      Tobias