RDSElementCard: RdsElementCardStyle;
RDSElementCard: Prognoz.Platform.Interop.ForeSystem.RdsElementCardStyle;
In the RDSElementCard property it is possible to select type of MDM dictionary element card.
By default, the RdsElementCardStyle.Standart value is used.
To execute the example, add links to the Fore, ForeSystem (for Fore.NET), KeFore (for Fore.NET), Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
SP: ISharedParams;
Begin
// Get the current repository
Mb := MetabaseClass.Active;
// Set table view to display MDM dictionary element card in default settings
SP := Mb.SpecialObject(MetabaseSpecialObject.SharedParams).Edit As ISharedParams;
SP.DefaultBehaviour.RDSElementCard := RdsElementCardStyle.PropertyList;
(SP As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.KeFore;
…
Public Shared Sub Main(Params: StartParams);
Var
Mb: IMetabase;
SP: ISharedParams;
Begin
// Get the current repository
Mb := Params.Metabase;
// Select table display type for element card in default settings
SP := Mb.SpecialObject[Prognoz.Platform.Interop.Metabase.MetabaseSpecialObject.msoSharedParams].Edit() As ISharedParam
SP.DefaultBehaviour.RDSElementCard := RdsElementCardStyle.recsPropertyList;
(SP As IMetabaseObject).Save();
End Sub;
After executing the example, in default settings the table type to display MDM dictionary element card will be set.
See also: