Attribute: String;
None;
The Attribute property returns attribute identifier to be replaced.
This property returns identifier of the attribute that substitutes the current element corresponding to an attribute of time series database. Checking by attribute identifiers the substitution may be prohibited by setting corresponding value to the Allow property.
Executing the example requires a form with the MetaAttributeBreadcrumb component named MetaAttributeBreadcrumb1. This component is connected to a time series database. The procedure mentioned is set for MetaAttributeBreadcrumb1 as a handler of the OnBeforeReplaceItem event.
Sub MetaAttributesBreadcrumb1OnBeforeReplaceItem(
Sender: Object; Args: IMetaAttributeBreadcrumbReplaceItemEventArgs);
Var
Item: IMetaAttributeBreadcrumbItem;
Begin
Item := Args.Item As IMetaAttributeBreadcrumbItem;
If (Item.MetaAttribute.Id = "DL") And (Args.Attribute = "COUNTRY") Then
Args.Allow := False;
End If;
End Sub MetaAttributesBreadcrumb1OnBeforeReplaceItem;
When the event occurs, attributes identifiers are checked. If replaceable element corresponds to attribute with the DL identifier, and the user tries to replace it by attribute with the COUNTRY identifier, substitution is prohibited.
See also: