on 10-11-2017 1:06 PM
hi,Das
In Your Json model which binding u are using?(oneway binding or twoway binding).
if u are using two way binding,make it as oneway binding instead ofusing two way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response...
this is my code in controller:
onPress: function()
{ var oTable = this.getView().byId("tstable");
var jModel= new sap.ui.model.json.JSONModel();
//var model = this.getView().getModel("jModel");
var typ= this.getView().byId("ityp").getValue();
var hrs= this.getView().byId("ihrs").getValue();
var aData = [{ date: "", from: "", to: "", hours:"", type:"", customer: "", project: "lux", description: "" }];
aData.push({type: typ, hours: hrs});
jModel.setData(aData);
oTable.setModel(jModel);
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.