TTMSMCPElicitSchema.AddField Method
Adds a field to the schema and returns it so its remaining attributes can be set.
API unit family: TMS.MCP.Elicitation
Declaring type: TTMSMCPElicitSchema
Syntax
function AddField(const AName: string; AType: TTMSMCPElicitFieldType): TTMSMCPElicitField;
Parameters
| Name | Description |
|---|---|
AName |
Key under which the value for the new field is returned in the result. |
AType |
Data type asked for by the new field. |
Returns
The newly created field, which stays owned by the schema. Use the returned instance to set the title, description, required flag and default value, and to fill the permitted values of an enumeration field.