on 06-16-2005 7:48 AM
Hello All,
Can someone advise on what must be done to achieve the below scenario :
1) I have a viewset that embeds 2 views belonging to 2 different components.
2) In view A, should the user makes a selection from a dropdown list box, the selection will decide the visibility of another UI that belongs to View B in the second component .
How should I pass this visible parameters across two components ? I will that it may involve the interface controller and component controller as well ?
Thank you very much.
from
Kwok Wei
Message was edited by: Armin Reichert
(Marked as question)
Hi,
1. In interface controller of component A create node "Output" (cardinality 1..1, selection 1..1) with attribute ShowDependedContent of DDIC type Visibility
2. In interface controller of component B create node "Input" (cardinality 1..1, selection 1..1) with attribute ShowDependedContent of DDIC type Visibility, <b>and mark the node as input</b> -- select isInputElement="true" in node properties.
3. Next, in component that embedds A & B you should have 2 component usages already. Now open usage of B, and add as required controller usage of A. Then map context nodes.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello,
as far as i could understand u need to control the visibility of a UIE in View2 depending on dropdown entry. i think u can use a variable of type Visibility and map it to the visibility property of the UIE in View2. create a variable of type Visibility in both controllers and map it across the controllers. now in the onselect of the dropdown change the visibility as per ur requirment. add the first component in components used of second component.
regards,
Piyush.
Hi Kwok,
When the view s are in a single component it is fine.. since the views are in different components we cant simply map it across controllers. The only way to access is through the interface controller and the conditions for it to be accessible are
1.It should be under a node
2.The node should have the property isInputElement set to true.
then you can map this interface controller to the child components component controller-> map this to the child view where visibility has to be set..
Bharathwaj
Hi,
If u want to pass the values or any thing between two views within the same component, u need component controller or custom controller(both are the same) and if u need to pass between views of two different components then it should be through an interface controller.
And i think ur scenario is between components so u need to use interface controller.
Regards,
Sirisha.
User | Count |
---|---|
94 | |
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.