DefaultBehaviour: IDefaultBehaviour;
The DefaultBehaviour property returns the object to work with default settings.
To execute the example, add links to the Fore and Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
SP: ISharedParams;
DB: IDefaultBehaviour;
Begin
// Get the current repository
Mb := MetabaseClass.Active;
// Select table display type for element card in default settings
SP := Mb.SpecialObject(MetabaseSpecialObject.SharedParams).Edit As ISharedParams;
//Determine default settings
DB := SP.DefaultBehaviour;
// Select table display type for element card in default settings
DB.RDSElementCard := RdsElementCardStyle.PropertyList;
// Select table display type for element card in default settings
DB.TreatEmptySelectionAsFull := True;
(SP As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, in default settings table view type for MDM dictionary element card will be set and the Treat Empty Selection as Full on the Behavior tab will be selected.
See also: