Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Problem with embed a view dynamically in a ViewContainer.

$
0
0

Hi

 

I found best article about dynamically embed view (without need adding used components).

etc.

http://scn.sap.com/community/web-dynpro-abap/blog/2013/01/07/navigation-from-one-component-view-to-other-componet-view-without-usinng-used-components

http://scn.sap.com/thread/1161579

 

The main part code is:

CALL METHOD LV_NAV_SERV->DO_DYNAMIC_NAVIGATION
           EXPORTING
             SOURCE_WINDOW_NAME        = 'ZWDA000' "my windows form I start
             SOURCE_VUSAGE_NAME        = 'MAIN_USAGE_0' "my view usage copied from Windows main
             SOURCE_PLUG_NAME          = 'DEFAULT' "used default value?
*            PLUG_PARAMETERS           =
             TARGET_COMPONENT_NAME     = 'ZWDA001' "my application who I want show
             TARGET_COMPONENT_USAGE    = 'ZWDA001' "same as above
             TARGET_VIEW_NAME          = 'MAIN' " view name of sub-application who I want show
             TARGET_PLUG_NAME          = 'DEFAULT'"used default value?
             TARGET_EMBEDDING_POSITION = 'MAIN/VCO_APP' "MAIN is view of SOURCE component / VCO_APP is ViewContainerUIElement
*          RECEIVING
*            COMPONENT_USAGE           =
            

I have a main application ZWDA000 and sub-application ZWDA001, ZWDA002, ZWDA003 e.g.

 

Each sub-application have a minimal 2 view (LOGON and MAIN). And component name is equal with Windows name. Sub-application have only one Windows.

Main application have many view (LOGON and MAIN, CHANGE e.g.). And have more Windows. Main windows have same name as component name (ZWDA000). This application has in MAIN view under ROOTUIELEMENTCONTAINER created VCO_APP type ViewContainerUIElement.

In main application I want show only MAIN view from sub-application.


I got this error

Instance of the view MAIN already exists in component

 

Thank you


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>