FindById(Id: String): IMetabaseObjectParam;
Id. Repository object parameter identifier.
The FindById method searches for a parameter by the specified identifier.
In case of successful search the method returns parameters settings, otherwise it returns Null.
Executing the example requires that the repository contains an object with the TEST_TABLE identifier. The object structure contains a parameter with the PARAM identifier.
Sub UserProc;
Var
MB: IMetabase;
Obj: IMetabaseObject;
Params: IMetabaseObjectParams;
Param: IMetabaseObjectParam;
Begin
MB := MetabaseClass.Active;
Obj := MB.Item(MB.GetObjectKeyById("TEST_TABLE")).Bind;
Params := Obj.Params;
Param := Params.FindById("PARAM");
Debug.WriteLine(Param.Name);
End Sub UserProc;
After executing the example the development environment console displays name of the parameter found by identifier.
See also: