on 12-31-2014 4:38 PM
Hi Experts ,
How do i
call a function present in view from its controller. I am using
var oView =this.createId("xyz"); //from the controller
//view xyz contains a method named abc.I am trying to call that using
oView.abc();
Hi Pinaki,
please re-read the documentation of View.createId(). It only constructs the full (prefixed) ID string. It returns a string, not a View.
Try
this.getView().abc();
instead.
Regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.