on 2015 Jun 04 8:25 AM
I am trying to use the select index function in the simple Table-Columns but I am getting the below error:
"Uncaught TypeError: Cannot read property 'getSelectedIndex' of undefined".
When I tried to check the properties in the explorer, I didn't find the property.
Request clarification before answering.
this is how we define in XML view:
var selRowIndex = rowtable.indexOfItem(oSelectedItem)+1;
and for Binding the context as Kuntal Sarkar explained above:
var path= oEvent.getParameter('listItem').getBindingContext().getPath();
var selectedRow= this.byId('Table_ID').getModel().getProperty(path);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Venkatesh,
It looks like it's not getting the control itself.
What are you trying to achieve specifically?
Regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
The property is there, but using your event, the code is not able to find this property. Check if you are referring to right event, Share the code piece if you still face some problem.
From "Cannot read property 'getSelectedIndex' of undefined", it is evident that the code is not able to get event to call the method.
Regards,
Swaroop
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.