Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

how to navigate through tab press in a required way?

$
0
0

my view has 3 text fields,i want to navigate from oText1 to oText3 and then to oText2 when i press tab key on keyboard. how should i do??

 

please reply

 

 

<html>

<head>

    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>

    <title>Matrix Layout</title>

 

    <script id="sap-ui-bootstrap"

        src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

        data-sap-ui-theme="sap_bluecrystal"

        data-sap-ui-libs="sap.ui.commons"></script>

 

 

 

    </script>

  <script>

 

 

 

 

var matrix2 = new sap.ui.commons.layout.MatrixLayout({

  id : "matrix2",

  layoutFixed : true,

  columns : 3,

  width : "100%",

  widths : [ "50%", "30%","20%" ]

  });

var oText1=new sap.ui.commons.TextField({

id:"oText1",

width:"100px"

});

var oText2=new sap.ui.commons.TextField({

id:"oText2",

width:"100px"

});

var oText3=new sap.ui.commons.TextField({

id:"oText3",

width:"100px"

});

 

 

matrix2.createRow(oText1,oText2,oText3);

matrix2.placeAt("uiArea");

 

 

 

 

 

 

 

</script>

 

 

</head>

<body class="sapUiBody">

 

 

    <!-- This is where you place the UI5 button -->

    <div id="uiArea"></div>

</body>

</html>

 

regards

ajaay


Viewing all articles
Browse latest Browse all 6412

Trending Articles