ITable.IsRecreateFL

Fore Syntax

IsRecreateFL: Boolean;

Fore.NET Syntax

IsRecreateFL: boolean;

Description

The IsRecreateFL property determines whether to recreate the table external connections.

Comments

Available values:

Fore Example

Executing the example requires that the repository contains a table with the TABLE_L identifier.

Add links to the Metabase, Db system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Table: ITable;
Begin
    mb := MetabaseClass.Active;
    Table := mb.ItemById("TABLE_L").Edit As ITable;
    If Not Table.IsRecreateFL Then
        Table.IsRecreateFL := True;
    End If;
    (Table As IMetabaseObject).Save;
End Sub UserProc;

After executing the example external connections in the TABLE_L table are recreated.

Fore.NET Example

Executing the example requires that the repository contains a table with the TABLE_L identifier.

Imports Prognoz.Platform.Interop.Db;

[STAThread]
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Table: ITable;
    FKeys: ITableForeignKeys;
    Key: ITableForeignKey;
Begin
    mb := Params.Metabase;
    Table := mb.ItemById["TABLE_L"].Edit() As ITable;
    FKeys := Table.ForeignKeys;
    If FKeys.Count > 0 Then
    If Not Table.IsRecreateFL Then
        Table.IsRecreateFL := True;
    End If;
    (Table As IMetabaseObject).Save();
End Sub;

After executing the example external connections in the TABLE_L table are recreated.

See also:

ITable