Table of Contents

Interface "Feature Management"

Namespace: System.Environment.Configuration

Interface that defines methods for linking tables "Feature Key Buffer" and "Feature Key". The default implementation uses the system table "Feature Key" as a source, but another implementation uses a temporary table "Feature Key" to delink Feature Management UX from the read-only virtual table.

Methods

GetData

Returns number of collected records. Feature interface read the system table "Feature Key" or another source of data depends on the interface implementation. In tests it can be a temporary table "Feature Key". Parameters IncludeFeatureKeys or ExcludeFeatureKeys can be used to get a subset of all existing records.

procedure GetData(IncludeFeatureKeys: List of [Text[50]], ExcludeFeatureKeys: List of [Text[50]], var FeatureKeyBuffer: Record "Feature Key Buffer" temporary): Integer

Parameters

Name Type Description
IncludeFeatureKeys List of [Text[50]]

the list of feature ids that must be included into the result buffer

ExcludeFeatureKeys List of [Text[50]]

the list of feature ids that must be excluded from the result buffer

FeatureKeyBuffer Table System.Environment.Configuration."Feature Key Buffer"

the record set of the table "Feature Key Buffer"

Returns

Type Description
Integer

number of records in the buffer

GetFeatureKey

procedure GetFeatureKey(FeatureId: Text[50], TempFeatureKey: __MissingTypeSymbol__): Boolean

Parameters

Name Type Description
FeatureId Text[50]
TempFeatureKey __MissingTypeSymbol__

Returns

Type Description
Boolean

SetEnabled

procedure SetEnabled(TempFeatureKey: __MissingTypeSymbol__): Boolean

Parameters

Name Type Description
TempFeatureKey __MissingTypeSymbol__

Returns

Type Description
Boolean

GenerateDependencies

Fills the temporary table "Feature Dependency" stored in the single instance codeunit "Feature Dependency Management". Add new feature dependencies by passing DependentFeatureId and ParentFeatureID, FeatureKeyBuffer is passed to control data consistency: FeatureDependency.New(FeatureKeyBuffer, DependentFeatureId, ParentFeatureID);

procedure GenerateDependencies(var FeatureKeyBuffer: Record "Feature Key Buffer" temporary, var FeatureDependency: Record "Feature Dependency" temporary): Boolean

Parameters

Name Type Description
FeatureKeyBuffer Table System.Environment.Configuration."Feature Key Buffer"

the record set of the available feature keys

FeatureDependency Table System.Environment.Configuration."Feature Dependency"

returned the record set of the dependencies to add

Returns

Type Description
Boolean

if any feature dependency was generated

See also