Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
511 views
in Technique[技术] by (71.8m points)

sapb1 - Newly added row is not reflecting on UI instantly in SAP B1

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...