Zoomed Image

AMSX Scripting Language - Command : EditRecord

Summary

Edit an existing record in a metadata table

Description

Fetches the existing record for the given primary key, applies field value overrides from the argument list, then saves the record back. Fields are supplied as alternating name/value pairs starting at argument 1. The table's primary key is used when saving.

Parameters

ParameterDescription
cmdTable name
Argument 0Primary key value of the record to edit
Argument 1Field name, 2 = Field value, 3 = Next field name, 4 = Next field value, etc.

Syntax


EditRecord "Table name", "Primary key value of the record to edit", "Field name, 2 = Field value, 3 = Next field name, 4 = Next field value, etc."

Return to the AMSX Command Reference