Table of Contents

TTMSMCPStellarDS.CreateField Method

Adds a field to a table.

API unit family: TMS.MCP.StellarDS Declaring type: TTMSMCPStellarDS

Syntax

function CreateField(const AProjectId: string; ATableId: Integer; const AFieldName, AFieldType: string): TJSONValue;

Parameters

Name Description
AProjectId Identifier of the project that holds the table.
ATableId Numeric identifier of the table the field is added to.
AFieldName Name of the new field, sent as the name member of the request body.
AFieldType Type of the new field, written with the type name the service recognizes, and sent as the type member of the request body.

Returns

In moSync, the parsed response body describing the new field. nil in moAsync, and also in moSync when the request failed or came back with an empty body. The caller owns a returned value and has to free it; a server that called this as a tool frees it once the result has been serialized.