on 2023 Jun 26 7:15 PM
Hi. I'm trying to add a checkbox column to the stages matrix. My first attempt was to use the subtype BoFldSubTypes, but I'm getting the error below when running it in SAP B1 Hana. Using SQL Server in my machine it worked perfectly.
Here is the error and the BoFldSubTypes definition.
I also tried to use a regular column with no subtype and change the matrix column type, but Type property is read only
myColumn.Type = BoFormItemTypes.it_CHECK_BOX; //ERROR. ReadOnly
Any solutions?
Request clarification before answering.
Hi cassio_tavares,
The following works for me:
SAPbobsCOM.UserFieldsMD oUDF = oCompany.GetBusinessObject(BoObjectTypes.oUserFields);
oUDF.TableName = "OITM";
oUDF.Name = "TESTCHK";
oUDF.Description = "TEST UDF Checkbox";
oUDF.Type = BoFieldTypes.db_Alpha;
oUDF.SubType = BoFldSubTypes.st_Checkbox;
oUDF.DefaultValue = "N";
int AUDF = oUDF.Add();
I am using SAPbobsCOM.dll for the same. Which one are you using SAPbobsCOM.dll or SAPBusinessOneSDK.dll ?
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankit.
I don't know what's wrong, but I'm using this exact version and the library that came with it.
The print is from the SAPBusinessOneSDK version 1.0.0.1 that came with SAP 10.0 (10.00.200) FP 2208
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is supported from Feature Package 2208 for SAP Business One version 10.0.
Kindly refer to SAP Note 3179183 for the same.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
10 | |
9 | |
6 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.