When I add new row into the database and call loadfromdatasource
method, it is not reflecting. I need to re-log to check newly added row. How can I instantly refresh data in matrix?
Code:
oUserTable.Code = "Temp1"; oUserTable.UserFields.Fields.Item("U_barcode").Value = oEditTxt.String; oUserTable.UserFields.Fields.Item("U_keyword").Value = oEditTxt1.String; oUserTable.UserFields.Fields.Item("U_pdocentry").Value = DocEntry; oUserTable.UserFields.Fields.Item("U_pobjtype").Value = "17"; int i = oUserTable.Add(); SAPbouiCOM.Form oForm = Application.SBO_Application.OpenForm(SAPbouiCOM.BoFormObjectEnum.fo_Order, "", DocEntry.ToString()); if (i != 0){ oApp.SetStatusBarMessage("Error" + oCompany.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Medium, false); }else{ oApp.SetStatusBarMessage("Successfully inserted data" + oCompany.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Medium, false); oMatrix.LoadFromDataSource();}}}
question from:
https://stackoverflow.com/questions/65949899/newly-added-row-is-not-reflecting-on-ui-instantly-in-sap-b1 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…