Skip to Content
avatar image
Former Member

get dynamicly view use

Hello,

I have 3 views in my component plus the MAIN view. I must get the name in "view use" property of every view at runtime, because I am inserting the next view dynamically in MAIN with method DO_DYNAMIC_NAVIGATION. The name can be very different for building it in the code:

VIEW1_USAGE_3

VIEW2_USAGE_1

VIEW3_USAGE_1

I haven´t been able to find a class that delivers this information and method WDDOINIT for every view is too late for working with wd_this->wd_get_api( ).

How can I find out the view use ??

Thanks !!!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 18, 2009 at 04:54 AM

    Hi,

    In the WDDOMOIDYFVIEW there is a parameter VIEW type IF_WD_VIEW.

    In this interface, there is a method for getting view usage.

    IF_WD_VIEW_CONTROLLER~GET_VIEW_USAGE or GET_VIEW_USAGE

    Check out this thread -

    wda-embedding-a-view-dynamically-on-an-other-view

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      thanks but method WDDOMOIDYFVIEW does not help me (it´s too late when the method is executed), since the information for usage is available once the MAIN view called the embedding view but in MAIN I must decide per code which view is to be called and embedded.

      Any other hints ??

      This is the code:

      * Do a dynamic navigation
        l_nav_services->do_dynamic_navigation(
            source_window_name   = 'MAIN'
            source_vusage_name   = view_usage               "<-- I need this info
            source_plug_name     = out_plug
            target_view_name     = next_view
            target_plug_name     = 'FROM_MAIN_VIEW'
            ).

      Thanks.

  • avatar image
    Former Member
    Jun 23, 2009 at 11:34 AM

    done

    Add comment
    10|10000 characters needed characters exceeded