CommitNewRow
Adds the new row that is returned from the GetNewRow
command to the data table. Rows can be committed to the table only if
each column that requires a value has a value. If a row with same key value already exists
in the table as the new row, then an exception is thrown.
Syntax
Public Sub CommitNewRow(ByVal objSymbol As String, ByVal objKey As String, ByVal
DetailCode As String, ByRef RowToAdd As DataRow)
Arguments
Argument | Description |
---|---|
objSymbol
|
The data object type or the current object type if blank. |
objKey
|
The data object key or the current object key if blank. |
DetailCode
|
The system detail code that is used to add
the new data row. Examples:
“INGR” for Formula Ingredients;
“HEADER”
If the detail code does not exist, or does not support rows being added to it (e.g., the VIEW detail), then an exception is thrown. |