on 04-01-2015 10:15 AM
Hello,
I have an application in which i have an sap.m.table with an input with value help. the table looks like this
Here Country is the input field with value help. How can i get the index of the row for which the value help is opened?
For example: If i select value help from Sl No 3, i should get row index as 3.
Can anyone please help me with the code.
Thank you,
Navya
Hi,
You can try this:
change: function(oEvent){
oEvent.getSource().getParent().getCells()[0].getText();
}
Kind regards,
RW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
var parts = oEvent.getSource().getId().split("-");
var rowNum = parseInt( parts[2].substring(3, parts[1].length) );
see this exampleJS Bin - Collaborative JavaScript Debugging</title> <link rel="alternate" type=&q...
Thanks a lot Robbe. I got exactly what i wanted.
Santhosh: oEvent.getSource().getId().split("-") gives me the id of the input. As i have the input in the table, the id of the input changes every time i make some changes in the field. Hence i cannot consider the id. Instead i wanted the path. Thank you for the help.
Thank you,
Navya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.