Skip to Content
-1

Add table row client side with combo box and submit changes manually using submit button. Can I do?

Nov 03, 2017 at 09:46 AM

33

avatar image
Former Member

var oPlmSelect = this.getView().byId("plmSelect");

var oSelectedVal = oPlmSelect.getSelectedItem().getText();

var oTable = this.getTable(); var oModel = this.getView().getModel();

var oEntry = {};

oEntry.Zzplanmarketid = oSelectedVal;

oEntry.ZzstrareaSender = "a";

oEntry.ZzstrareaShipto = "b";

oEntry.ZzecKunnr = "c";

oEntry.ZzecLgnum = "d";

oModel.createEntry('/PMStoreDispatchSet', { properties: oEntry, success: function() { MessageToast.show("Create successful"); }, error: function() { MessageToast.show("Create failed"); } });

oModel.submitChanges();

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Arjun Biswas Nov 04, 2017 at 03:38 AM
0

Could you please rephrase your question, do you want the submit button for each row or, is it for the whole table itself. Please explain the work flow of your requirement.

Share
10 |10000 characters needed characters left characters exceeded