on 06-25-2008 8:45 AM
How can I access Parent DCs methods in Child DC?
Suppose I have DC1 is been used in DC2. Now, From DC2 I need to execute methods of DC1 or access an Outplug of DC1.
Please give me some idea
thanks in anticipation,
nikhi∟
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm with Apurva on this.
Handle the interaction between the DCs in the parent DC (and on the main view).
If required the DC should expose plug and/or events to trigger the navigation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is one main DC and 5 child DCs, each to be called on seperate steps.
1. Add 5 viewContainerUI elements in main view.
2. Add the views of child DCs in viewContainerUI element
3. Bind visibility of these views to context attribute
4. Write logic for navigation (dynamically changing visibility) in main view.
Regards,
Apurva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
1.First place the method you want to expose in DC1 interface controller.
2. Expose the interface controller as public part in DC1.
3. Add the public part of Dc1 to Dc2.
4. Now add the InterfaceComponentController of DC1 in DC2 .
5. Now you should be able to access to methods in Dc1 interface controller.
6.to access outbound plug just writ
wdThis.wdget<interfacecontollername>().wdFireplug<outplugname>();
I am new to webdynpro java up to my knowledge i answered the question if it useful give me points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Create a method in Interface controller of DC1. In this method call your DC1 method which you wantto use it in DC2. Open DC2 -> Add usage of DC1 in DC2. Now you can access your DC1's Interface controller's methods in DC2.
Regards
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Actually you should do it in another way. Only Used Dc (child DC in your terms) is accessible in your parent DC but not vice versa. The usage must be one way i.e. If DC1 is added as UsedDC in DC2, then you can not add DC2 as UsedDC in DC1 because it will cause cyclic dependency error.
Regards,
Siva
Hi Nikhil,
If you have a method in the Interface Controller of DC1 then you can access that method in the DC2.
For example if your method in DC1 Interface Controller named getData() then you can access that in the DC2 view as
wdThis.wdGet<InterfaceControllerofDC1>().getData();
But DC1 should be added as a Required controller in DC2 view.
Thanks & Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.