Skip to content

AddData

Appends a new row on specified target table and returns inserted row as object.

1
$Database.AddData(schema: string, table: string, input: object):DataRow

Adds a new row to the specified target table with the name or ID number of the Target datastore and returns the inserted row as an object.

1
$Database.AddData(store: string, schema: string, table: string, input: object):DataRow

Parameters

string schema
    Name of target schema

string table
    Name of target table

object input
    Input javascript object.

string store
    Name or Id number of target data store. This parameter is optional.

Remarks

Example

1
2
3
4
5
$Database.AddData('MySchema', 'MyTable', {
    Id : $Xml.Evaluate('Id'),
    Name : $Xml.Evaluate('Name'),
    State : 'W'
});

See Also