IRubricator.TreatEmptyStringAsNull

Fore Syntax

TreatEmptyStringAsNull: Boolean;

Fore.NET Syntax

TreatEmptyStringAsNull: boolean;

Description

The TreatEmptyStringAsNull property determines whether to store empty strings as Null.

Comments

The property is used only in non-version time series databases.

Available values:

Features:

Fore Example

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

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Rub: IRubricator;
Begin
    mb := MetabaseClass.Active;
    Rub := mb.ItemById("TSDB").Edit As IRubricator;
    Rub.TreatEmptyStringAsNull := True;
    (Rub As IMetabaseObject).Save;
End Sub UserProc;

After executing the example time series database parameters are changed: empty strings are stored as Null.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Cubes;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Rub: IRubricator;
Begin
    mb := Params.Metabase;
    Rub := mb.ItemById["TSDB"].Edit() As IRubricator;
    Rub.TreatEmptyStringAsNull := True;
    (Rub As IMetabaseObject).Save();
End Sub;

See also:

IRubricator