cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello

in my project i am importing data in a smart table from an Excel file .

my smart table is editable but when i try to submit the changes nothing is happening and no batch call is done.

this is my smart table looks like:

end this is my save function : the toast Message is shown but nothing happens . and even when i see the Network , nothing happend

	onSave: function () {
			var oModel = that.byId("smartTab").getModel();
			oModel.setUseBatch(true);
			that._setBusy(true);
			var fnSuccess = function (data, response) {
				that._setBusy(false);
				var sMessage = that._getText("changesSentMessage");
				MessageToast.show(sMessage);
				that._setUIChanges(false);
			};
			var fnError = function (e) {
				that._setBusy(false);
				that._setUIChanges(false);
				MessageBox.error(e.message);
			};
			oModel.submitChanges({
				success: fnSuccess,
				error: fnError
			});
			that._bTechnicalErrors = false;
		},
View Entire Topic
prashil
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ibtissem,

Since you are using JSONModel, then it's obvious there would not be any network call. JSONModel, is a client model, which means it will be built at the browser side and have no connection to the backend. Whatever you change will be directly updated to your JSONModel data because of two-way binding and that is the reason you will always see pending changes as false.

I hope it clarifies your question.

Thanks

Prashil

Former Member
0 Likes

hello

so its not possible to to use submitChanges ?

thank youu