title: Get values from selected CustomTile SAPUI5
body: <p>I have a product catalog made with CustomTile Control. When I press one tile, I want to go to a details page. For that I need to know some of the values that are on the pressed tile, which I'm not able to.</p>
  
  <p>Here is the code for the tile and the binding:</p>
  
  <pre><code>    var sServiceUrl = "/sap/opu/odata/sap/ztestefardas_srv/"; //URL do serviço oDATA
  var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl);
  sap.ui.getCore().setModel(oModel);
  </code></pre>
  
  <p>OData.read("/sap/opu/odata/sap/ztestefardas_srv/catalogo",</p>
  
  <pre><code>        function (response){
      for(var key in response.results) {
          var value = response.results[key];
  
    var oImg =new sap.ui.commons.Image({
        width :"160px",
        height :"160px"
        }).setSrc(value["img"]);
    oImg.addStyleClass("img_cat");
  
    var oMatxt =new sap.ui.commons.TextView({
      text: value["matxt"],
      width: "200px"
      }).addStyleClass("matxt");
  
    var oAtr =new sap.ui.commons.TextView({
      text: "Atribuídos: "+value["n_atr"],
      width: "200px"
      }).addStyleClass("second_line");
  
    if (value["n_dis"] &gt; 0){
      var oDis =new sap.ui.commons.TextView({
          text: "Disponíveis: "+value["n_dis"],
          width: "200px"
          }).addStyleClass("second_line_disp");
    } else {
      var oDis =new sap.ui.commons.TextView({
          text: "Disponíveis: "+value["n_dis"],
          width: "200px"
          }).addStyleClass("second_line");
    }
  
    var oPtxt =new sap.ui.commons.TextView({
      text: "Próximo levantamento:",
      width: "200px"
      }).addStyleClass("third_line");
  
    var oPlev =new sap.ui.commons.TextView({
      text: value["p_lev"],
      width: "200px"
      }).addStyleClass("third_line");
  
    var oLayout = new sap.ui.commons.layout.VerticalLayout({
  content: [oImg,oMatxt,oAtr,oDis,oPtxt,oPlev]
  </code></pre>
  
  <p>});</p>
  
  <pre><code>  var oTile = new sap.m.CustomTile({
      content:oLayout,
      press: function(oEvento){  
  
  
  
          //missing code to get values from selected tile
          oNavContainer.to(Page2);
          } 
              }).addStyleClass('sapMTile');
  
  
          oContainer.addTile(oTile); 
      }});
  </code></pre>
  
  <p>I've tried with the table attach row selection change way, but it's not working too.
  Can you please help?</p>
  
  <p>Thank you. </p>