on 03-14-2019 6:56 AM
I am a beginner in SAP UI5 technology. And trying to learn this technology.
I am getting this error can some please let me know where I had gone wrong.
I got this error "Cannot read property 'getBinding' of undefined".
My list is showing undefined. what is the cause of this.
Any Help woud be appreciated.
TIA.
I need my output like this (also i took the reference from this)
https://jsbin.com/fubaluv/84/edit?html,js,output
# This one is my View
#This is my view controller.
Hi Sandeep,
You have used the incorrect list ID in controller. You list id is "itm" and not "List".
In method, handlleIconTabBarSelect, use the following
var oList = this.getView().byId("itm")
Thanks,
Vaibhav Maheshwari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try var list = sap.ui.getCore().getElementById("idList");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
Can you please try to get the list from the view. Like var list = this.getView().byId("idList");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should get the list with related id. Like
var oList = this.getView().byId("itm");
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.