on 06-19-2020 5:21 PM
Hello all,
I'm adding UDF to the matrix in the "list of production orders" form. Everything seems OK. There is no error in the code below, but the value is not visible when I open the screen. I'm sure that I have values in the database.
if (pVal.FormTypeEx == "10201" && pVal.BeforeAction == true && pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DRAW) {
try {
SAPbouiCOM.DBDataSource prodOrders;
SAPbouiCOM.Form listOfProductionOrdersForm = Application.SBO_Application.Forms.Item(pVal.FormUID);
prodOrders = listOfProductionOrdersForm.DataSources.DBDataSources.Item("OWOR");
SAPbouiCOM.Matrix oMatrixProductionOrders = (SAPbouiCOM.Matrix)listOfProductionOrdersForm.Items.Item("7").Specific; SAPbouiCOM.Columns oMatrixProductionOrdersColumns = oMatrixProductionOrders.Columns; oMatrixProductionOrders.Clear();
SAPbouiCOM.Column oMatrixProductionOrdersColumn = oMatrixProductionOrdersColumns.Add("Project", SAPbouiCOM.BoFormItemTypes.it_EDIT);
oMatrixProductionOrdersColumn.TitleObject.Caption = "Project";
oMatrixProductionOrdersColumn.Width = 100;
oMatrixProductionOrdersColumn.Editable = false; oMatrixProductionOrdersColumn.DataBind.SetBound(true, "OWOR", "U_Project2");
}
catch(Exception ex) { } }
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.