Skip to Content
avatar image
Former Member

Outbound plug of a view_container_uielement

Dear Developers,

Is there any kind of "outbound plug" for a view_container_uielement ?

Actually I would like to detect when a view contained in a view_container_uielement has reached an outbound plug. This would then me allow to jump out of the view containing the container.

Does it sound reasonable? Possible?

Sincerely,

Olivier MATT

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 12, 2007 at 03:32 AM

    Hi Olivier,

    I had a similar problem with prepare_dynamic_navigation once that though i called the method correctly, th old view was still being displayed. Can you check that you create a new outbound plug for each view or not? (do you have a different name in front of 'source_plug_name' for every view??)

    After this, use if_wd_view_controller->fire_plug( <plug_name> ) to navigate. You can have the plug name as a string so that u don't have to have an if..else... everytime.

    Hope this is what you were looking for.

    Regards,

    Neha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey Olivier.

      So you are located in Walldorf at SAP? Maybe I will take some course there someday. Then I will definitely come back to this invitation. 😊

      Cheers,

      Sascha

  • avatar image
    Former Member
    Jun 12, 2007 at 10:20 AM

    Hi Olivier,

    if the plug from V1 to V3 is 'PLUGOUT' then why do u have it in the prepare_dynamic_navigation as source_plug_name? Here, you are wrongly creating a dynamic link from V1 to V2 using 'PLUGOUT'. You should have a different plug name for embedding V2 in V1 in your method call. (This plug need not be statically defined, you can declare it in the program itself).

    Regards,

    Neha

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 06, 2007 at 02:05 PM

    Hi Olivier,

    There is no need to detect this. It is possible (and the framework is explicitely designed to support this) to create a navigation link from outbound plug of the inner view to an inbound plug of the view replacing the outer view.

    Ciao, Regina

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sacha,

      So I created an event in the contained view which is caught by the handler of the upperview.

      This handler then fires the outbound plug.

      Everything at this point seems to be working, the wd4a runtime navigates to the new view ( I checked it with a break point in the WDDOINIT ).

      But what is displayed in my browser is not the new view but the old one. It looks like there is no refresh...

      Have I discovered a bug ? Or did I do something wrong ?

      Sincerely,

      Olivier MATT

      PS: the view contained in the container is set dynamically with L_VIEW_CONTROLLER_API->PREPARE_DYNAMIC_NAVIGATION( ... )