Hi Experts,
I m working on UI5 grid.
I m editing cell of row in table and on click of button m saving that row.
Now m able to do this only for one row.
I m using following code for this:
var selRowContext = oTable.getContextByIndex(oTable.getSelectedIndex());
var selectedId = oModel.getProperty("giid", selRowContext);
var selectedPO = oModel.getProperty("processorder", selRowContext);
var selectedQnty = oModel.getProperty("actqty", selRowContext);
document.icmd_common.setQueryTemplate("Default/Folder/SQLQRY_Save_Data");
var commCommandQueryTemplate = document.icmd_common.getQueryObject();
commCommandQueryTemplate.setParam(1, selectedQnty);
commCommandQueryTemplate.setParam(2,selectedPO);
commCommandQueryTemplate.setParam(3, selectedId);
document.icmd_common.executeCommand();
sap.ui.commons.MessageBox.alert("Actual quantity updated successfully.");
If m editing mutiple cell of multiple row and trying to save it then it is considering only last row edited.
Can you help me to achieve for multiple saving of row on click of button?
Thanks in advance.
Regards,
Neha