Why BusinessObject.Add Ignores default values?


Author
Message
dgsoft
dgsoft
StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)
Group: StrataFrame Users
Posts: 93, Visits: 236
Hi,

In the database I setup default value for integer field -1
For businessObject default value for isDbNull also -1


When I made BO.add() the Public Shared Sub InitializeNewRow() set default values for new row and choose for Integer 0 in any case.

The question is why? and second question - what the logic 3 time write same in SetDefaultValues() event? Is there easy way to initialize correct column values using defaultvalues or using BOM isDBNull values?

Thanks

Denis
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search