IsData: Boolean;
The IsData property returns True if the field of data source is regular (not calculated).
Sub Main;
Var
MB: IMetabase;
DSInst: IDatasetInstance;
DSModel: IDatasetModel;
Fields: IDatasetModelFields;
Field: IDatasetModelField;
s: String;
Begin
MB:=MetabaseClass.Active;
DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;
DSModel:=DSInst.Dataset;
Fields:=DSModel.Fields;
Field:=Fields.Item(0);
If Field.IsData Then
s:="Yes";
Else
s:="No";
End If;
End Sub Main;
After executing the example, the "s" variable contains Yes, if the first field of data source is regular (not calculated). The identifier of data source is Table_1.
See also: