I have a main component (C0) which embeds a component with select options (C1) and another component with an ALV list and a detail screen (C2) (and some other componets).
C0 has declared usages of C1 and C2. How can I forward the selection criteria from component C1 to component C2?
Thanks in advance and best regards,
You can use interface nodes to pass data between different components. Suuppose you want the selection
Criteria of comp1 in comp2 where comp1 and comp2 are usages in main comp, You can use interface nodes
in comp1 and comp2 and map these nodes to main component and pass data from one component to another.
unfortunately it looks like the solution both of you suggested isn't working...
1.) I've flagged the context node in the component controller of Comp1 as "Interface Node".
2.) I've flagged the context node in the component controller of Comp2 as "Interface Node" and "Input Element (Ext.)".
(Both nodes use the same dictonary structure)
3.) In my main component I've declared a mapping between the nodes in the Interface Controller Usage ("USAGE_ORDER_SEL") of Comp2.
When starting my application I get a runtime error UNCAUGHT_EXCEPTION / CX_WD_CONTEXT_MAPPING stating "Component Usage USAGE_ORDER_SEL Specified in the Mapping Is Unknown".
It looks like the runtime environment tries to validate the mapping of Comp2 although Comp1 isn't initialized yet.