on 09-11-2014 9:20 PM
In a previous discussion I asked about how to swap out 2 separate areas in my application on the same page.
A poster (I think it was Andreas) suggested instead of using OverlayContainer (which either relies on a Shell or covers up the entire iFrame which was not good since I can't cover up a banner) that I just do this in 2 DIV's.
So I have one XML view that contains these 2 DIV's. The first DIV is the main one.
In the second DIV I was able to "include" another XML view (using the XMLView tag and giving it the view name) which is pretty cool.
The only thing is that in that second DIV's XML view there is a close button and I need to be able send an event from that view's controller back to the first DIV's controller so it can show the first DIV and hide the second DIV.
I tried to access them by doing this in the second DIV's controller but it did not work:
this.getView().getParent().byId("firstDIV");
Thanks,
Erich
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kimmo,
You are right that technique you showed does allow me to call a function in another controller.
However in the function in the other controller that is called I try and do this:
var myContent = this.getView().byId("myContent");
And in the debugger the this.getView() comes back as undefined.
Is there a way to re-establish the view for the controller that was called?
Thanks,
Erich
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.