Skip to Content
0
Former Member
Aug 05, 2014 at 01:21 PM

B1WizardBase

87 Views

Hi All,

Please can someone guide me to add mandatory UDF's via the B1Wizardbase in the DI ?

I know that the mandatory true mean not mandatory and false means mandatory but it keeps telling me that it must have a default value ?

I have tried the following:

new B1DbColumn("OCRD", "DistributorCode", "Distributor Code", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None,6, false, new B1WizardBase.B1DbValidValue[1] {new B1WizardBase.B1DbValidValue("0", "abc")},0),

new B1DbColumn("OCRD", "DistributorCode", "Distributor Code", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None,6, false, new B1WizardBase.B1DbValidValue[0] ,-1),

But it does not seem to work properly ...

Please note that I do want a default value in a textbox and not ValidValue in a combo box.

I noticed when adding mandatory user defined fields.

If it is a system table with existing data then I get the error of there must be a default value, but when adding to a user defined table there is obviously no data in the table as of yet then it work 100% adding a mandatory UDF with no default value.

Can someone please assist in specifying a default value for a mandatory edit text UDF ???

Please assist...

Kind Regards,

Brenden Draper