IRubricatorInstance.DeleteMembersFacts

Syntax

DeleteMembersFacts(Members: IMetaMembersSet; Recursive: Boolean);

Parameters

Members. A set of deleted elements.

Recursive. Indicates whether child elements must be deleted. True: child elements are deleted; False: child elements are not deleted.

Description

The DeleteMembersFacts method deletes indicators corresponding with the specified elements set.

Example

Executing the example requires a form, a button named Button1 on the form, the MetaAttributesBreadcrumb component and the MetaAttributesTreeList component named MetaAttributesTreeList1. These components are set up to work with a specific time series database.

Click the button to execute the example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    SelNodes: Array;
    MembersSet: IMetaMembersSet;
    Rub: IMetabaseObject;
    RubrIn: IRubricatorInstance;
Begin
    SelNodes := MetaAttributesTreeList1.GetSelectedNodes;
    MembersSet := MetaAttributesTreeList1.GetNodesMembers(SelNodes);
    Rub := MetaAttributesTreeList1.Rubricator As IMetabaseObject;
    RubrIn := Rub.Open(NullAs IRubricatorInstance;
    RubrIn.DeleteMembersFacts(MembersSet, True);
End Sub Button1OnClick;

After executing the example the indicators corresponding with the specified elements are deleted.

See also:

IRubricatorInstance