Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: select first item in list issue

$
0
0

Hi,

  1.      var list = new sap.m.List({ 
  2.      id : "yourlist"
  3.      updateFinished : function(oEvent){  
  4.           var firstItem = this.getView().byId("yourlist").getItems()[0];  
  5.           this.getView().byId("yourlist").setSelectedItem(firstItem,true);  
  6.           // perform further neede code here..like modfieng detail page based upon first item 
  7.           } 
  8.      }); 

Try this


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>