08-01-2013 02:03 AM
This is my code of Listview. The data in arrayDataModel is inserted in C++ code .
When I click on any element in the list, inside ontriggered event it gives indexPath as 0.
How can i fetch the data which is clicked.
08-01-2013 01:32 PM
I don't actually see indexPath in your sample code.
If I am intepreting your code correctly, something like this should work:
city_button.text = _app.tr2(city_list.dataModel.data(indexPath))