on 02-22-2017 3:49 AM - last edited on 02-03-2024 6:05 PM by postmig_api_4
HI All,
We are trying to add an additional column in the incoming payment screen using the business one studio. The problems we are facing are as below.
1. The form designer doesnt show us the matrix.
2. We added the column via code but when we try to bind it to a DBDatasource, it gives an error "Data Source - Not User Data Source"
Form current = SAPbouiCOM.Framework.Application.SBO_Application.Forms.Item(pVal.FormUID);
DBDataSource ds = (DBDataSource)current.DataSources.DBDataSources.Add("OINV");
UserDataSource uds = current.DataSources.UserDataSources.Add("UsrDEntry", SAPbouiCOM.BoDataType.dt_SHORT_TEXT);
Matrix dgLines = (Matrix)current.Items.Item("20").Specific;
Column cl = dgLines.Columns.Add("DocEntry", BoFormItemTypes.it_EDIT);
cl.TitleObject.Caption = "Test";
cl.Width = 80;
cl.Editable = true;
uds.Value = "12";
cl.DataBind.SetBound(true, "OINV", "DocEntry");
Does anyone have a sample how to do this?
Hi Orlando,
That is the behavior stated in the documentation
The following restrictions apply to system DBDataSource objects in system forms:
I guess the reason is that, if they would allow you to bind to system fields it would be possible to change read-only fields (by leaving the bound column as editable).
Pedro Magueija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.