yeah its setvalue . but actually didnt work.
var oInput1 = sap.ui.getCore().byId("input");
oInput1.setvalue("1"); // by hardcoding 1 atleast
it seems that that the object property i am receiving from the api is accessible only in that particular function. How can i make it accessible in all the functions. though specifying as a global variable didnt work actually