IMetaAttribute.Nullable

Syntax

Nullable: Boolean;

Description

The Nullable property determines whether an element may have empty value by this attribute.

Comments

Available values:

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Rubr: IRubricator;
    Facts: IMetabaseObject;
    Att: IMetaAttribute;
Begin
    MB := MetabaseClass.Active;
    Rubr := MB.ItemById("OBJ_FC").Bind As IRubricator;
    Facts := (Rubr.Facts As IMetabaseObject).Edit;
    Att := (Facts As IMetaDictionary).Attributes.Add;
    Att.Id := "A_COMMENT";
    Att.Name := Comment;
    Att.Kind := MetaAttributeKind.Comment;
    Att.DataType := DbDataType.String;
    Att.DefaultValue := Comment;
    Att.Hidden := False;
    Att.Nullable := True;
    Att.HasMultipleValues := False;
    Att.FieldSize := 255;
    Facts.Save;
End Sub UserProc;

After executing the example, the Comment attribute is added to the dictionary that contains information about indicators of the time series database with the OBJ_FC identifier. Attributes parameters: string (length 255 characters), not hidden, multiple values are not available, may contain empty values.

See also:

IMetaAttribute