Skip to Content

Events

Hi,

I have a query regarding raising and receiving of events. I have created an event in the Component Controller and also a dummy method which raises this event.

In the View 1 under the component controller i call the dummy for raising the event. I have created an event handler which subscribes to this event in View 2 under the same component controller.

However this method is not getting called. Any reasons why this is not possible.

Also why isn't firing of outbounds plugs in wdDoModifyView have no effect.

Regards

Sidharth

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 29, 2004 at 10:22 AM

    Hi Siddarth

    If your View2 hasnt been navigated or hasnt been shown on the browser then the method to which subscribes to your event wont be called

    Regards

    Pran

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 29, 2004 at 11:06 AM

    Sidharth,

    This is stated in WebDynpro documentation, that controller does not receive events without being incarnated first for performance reasons. For view controller this means the following:

    1. If view is framework controlled, then view must be displayed at least ones before it receives events. For example, for the very beginning view must be a default view in corresponding view container assignment (window, view set, view container element)

    2. If view lifecycle policy is "When visible" the above rule becomes just more strict: view must be visible in current component state, rather then "displayed at least once"

    <i>Also why isn't firing of outbounds plugs in wdDoModifyView have no effect.</i>

    😊 It's hard to understand exact sense of sentence in English when you use double negation.

    Regards,

    VS

    Add comment
    10|10000 characters needed characters exceeded