Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Form binding with oData based on input values

Hi everyone ,

In sap.m , XML view i need to display a form , in which the field values should change dynamically,

in accordance with my input and button press.

my UI looks like the below

this is my "controller.js"  code:

-----------------------------------------------------

press: function() {

input1=this.getView().byId("inp1").getValue();

input2=this.getView().byId("inp2").getValue();


var path= "/creditData1Set?$filter=Creditcontrolarea'+' '+'eq'+' '+"'"+input1+"'"+' '+'and'+'   '+'Customer'+''+'eq'+' '+"'"+input2+"'" " ;

var frm = this.getView().byId("form_id");

frm.bindElement(path);

}

-----------------------------------------------------

but its not working

is this right way to bind oData to a Form.

pls suggest if having any idea on this.

thanks,

Chandran.

Not what you were looking for? View more on this topic or Ask a question