on 07-14-2006 9:12 AM
Hi,
I have 2 components, C1 and C2. C1 has got 2 views of its own, after which C2 is called. So, in the navigational diagram of C1's window, C2's interface view is embedded and its inbound interface view plug is fired on an action in C1's view. All works fine.
But I want to go back to C1 from C2, on a 'back' action in C2. I tried creating an outbound plug in C2's interface view, creating a navigational link between C2 and C1 in the window diagram where its being called from, and then firing this outbound plug in C2's action.
But it gives an error saying 'Cannot exit embedded component'. Why is that?
Any clues?
Your help is much appreciated.
Many Thanks,
LM
L.M.,
Just to make sure: is outbound plug in C2 marked as "Exit" or as "Standard"? It should be of second type...
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
The instance of the inner component is handled by the embedder component ...so how an inner comp can exit itself....create a event in the interface component controller of inner comp ...and in the embeder comp ...create a event handler which handles the event of the inner comp...in that ....u can delete the innner comp....using wdThis.wdComponentcontusagename.deleteComponent() . it delete the comp and replace the view with empty view in the event handler u can call any other view ....
see the example ....
Regards,
Yashpal
Hi Yashpal,
Thanks for the answer, but I dont think I want to delete the comp, because I am not using view-containers to embed the component. also, I need to navigate back and forth between the components, on button actions. so, I am not sure whether delete would work.
Velery, I will try using the events to navigate, and let you know how it goes, thanks,
LM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.