RemoveMapping(Index: Integer): Boolean;
Index. Binding index.
The RemoveMapping method removes attribute binding to a data provider field.
This method returns True if the binding is successfully removed.
The example is a procedure with a single input parameter:
sExport. The object that contains parameters of data export from an MDM dictionary.
Add a link to the Rds system assembly.
Sub clearMapping(sExport: IMetaRdsExportSchema);
Var
i, mc: Integer;
attrMap: IRdsExportSchemaAttribute;
Begin
mc := sExport.MappingsCount;
For i := 0 To mc - 1 Do
attrMap := sExport.ItemMapping(0);
If sExport.RemoveMapping(0) Then
Debug.WriteLine("Attribute binding '"
+ attrMap.Attribute.Id + "' removed");
End If;
End For;
End Sub clearMapping;
After executing the example all attributes' bindings to data provider fields are removed in the sExport object. Attribute names are displayed in the console window.
See also: