在SAP Business One SDK中,填充网格视图和按钮保存在数据库中
在SAP Business One SDK中,可使用下面的步骤来填充网格视图并保存数据到数据库中:
Form form = SBO_Application.Forms.Item("窗体的UID");
Grid grid = form.Items.Item("网格视图的UID").Specific;
DataTable dataTable = grid.DataTable;
Rows rows = dataTable.Rows;
Row newRow = rows.Add();
Cells cells = newRow.Cells;
Cell cell1 = cells.Item("列1的UID");
cell1.Value = "值1";
Cell cell2 = cells.Item("列2的UID");
cell2.Value = "值2";
dataTable.Update();
这些步骤可以帮助您在SAP Business One SDK中填充网格视图并保存数据到数据库中。您可以根据实际需求进行适当的修改和调剂。
TOP