IRdsDictionary.UpdateElementDependencies

Fore Syntax

UpdateElementDependencies(Element: Integer);

Fore.NET Syntax

UpdateElementDependencies(Element: integer);

Parameters

Element. Element key.

Description

The UpdateElementDependencies method updates a link to the Link element by the key.

Comments

To update all links to the Link element, use the IRdsDictionary.UpdateElementsDependencies method.

Fore Example

Executing the example requires that the repository contains a dictionary with the DIM identifier that contains the elements referring to elements of other objects.

Add links to the Metabase, Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Dict: IRdsDictionary;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("DIM").Bind;
    Dict := MObj As IRdsDictionary;
    Dict.UpdateElementDependencies(1);
End Sub UserProc;

After executing the example the link to the Link element is updated with the 1 key.

Fore.NET Example

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

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Rds;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Dict: IRdsDictionary;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["DIM"].Bind();
    Dict := MObj As IRdsDictionary;
    Dict.UpdateElementDependencies(1);
End Sub;

See also:

IRdsDictionary