Hi,
while I was reading a book about Web Dynpro, I came across the topic of multicomponent applications. The book provides a step-to-step guide on how to develop a simple Multicomponent application.
In short the steps are the following:
- Create a main component (named ZWDC_CHAP02_MAIN in the rest of this step-to-step guide) which will use another component later
- Insert a ViewContainerUIElement in the Views Layout.
- The MAIN Component is finished for now.
- Create the component that will be used by ZWDC_CHAP02_MAIN ( that component will be called ZWDC_CHAP02_NATIONS )
- In the component controller of ZWDC_CHAP02_NATIONS, create a context node inheriting from the dictionary-structure t005t with the following attributes:
- Interface node : yes
- Input-Element( Ext. ) : yes
- cardinality: 0..n
- selection: 0..1
- init. lead selection: yes
- singleton: no
- supply-function: supply_t005t
- Implement the supply-function for the context node.
- Map the node t005t from the component controller of ZWDC_CHAP02_NATIONS to the Viewcontext of this component.
- Create the Layout of the View V_NATIONS and bind the Context-attributes (from t005t) to the corresponding UI-Elements
- Back in the component ZWDC_CHAP02_MAIN select the component itself (the root) and define the used component in the tab used components
- In the window of ZWDC_CHAP02_MAIN navigate to the ViewContainerUIElement (added in Step 2) and embed a View via rightclick.
- Choose W_NATIONS of component ZWDC_CHAP02_NATIONS
- Activate all components and create an application in the main component with window W_MAIN from it.
After all these steps the application should work, but im getting a dump saying the following:
The external mapping of the node ZWDC_CHAP02_NATIONS#COMPONENTCONTROLLER.CONTEXT.T005T isn't completed.
Abort-type: RABAX_STATE
I already checked the short dump in transaction ST22 but I can't get a solution out of this.
I played a bit around and changed the attribute Input-Element( Ext. ) to no and the application suddenly worked, but selecting another record from the DropdownBox didn't change anything in the corresponding TextView Elements.
However, can someone explain me why the application doesn't dump when the above mentioned attribute is set to no instead of yes ( which the book says it should be and seems logical to me ) ?
Thanks for any input on this,
Regards, Jan !