cancel
Showing results for 
Search instead for 
Did you mean: 

Add checkbox column to stage project matrix

cassio_tavares
Explorer
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

cassio_tavares
Explorer
0 Kudos

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

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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