Skip to Content
May 23, 2016 at 10:41 AM

How to get id of a field and how to set the value of field?


Hi a program i have View1 and View2 .

1. In View1 -------> Input field and button is there.

2. I want when user insert data in the field data should get pass from View1 to View2.

on the click event of button i have use this code in controller.js but its not working,variable oValue not getting anything.

OnPress() {

var oValue = sap.ui.getCore().byId("Input_id");