A field in the database (SQL server) is nvarchar(6), not nullable, with a default value of ('') Parenthesis-Singlequote-Singlequote-Parenthesis .If in the Business object mapper NULL Value Option of that field is set to "Return alternate on null / Set null on alternate" with Null replacement value defined as " " (quote-space-quote), the generated code is missing the EndIf statement.
Set
(ByVal value As System.String)If
value <> " " ThenMe
.CurrentRow.Item("ccodempv") = valueElse
Me
.CurrentRow.Item("ccodempv") = DBNull.ValueEnd
SetA related but different problem appears when business object is saved if NULL Value Option is set instead to Return Alternate on Null: In that case an error ocurrs because Strataframe apparently sends a NULL to be saved, and Sql Server protests.