IRdsParam.SkipOnNull

Syntax

SkipOnNull: Boolean;

Description

The SkipOnNull property determines whether filtering can be disabled if parameter value is empty.

Comments

Available values:

Example

Executing the example requires that repository contains parametric MDM dictionary with the RDSSON identifier where custom attribute is specified and attribute value is set to dictionary elements. Custom attribute is used as binding for the parameter with the PARAM identifier.

Add links to the Metabase, Rds system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Dict: IRdsDictionary;
    Prms: IRdsParams;
    Prm: IRdsParam;
Begin
    
// Get current repository
    mb := MetabaseClass.Active;
    
// Get MDM dictionary
    Dict := mb.ItemById("RDSSON").Edit As IRdsDictionary;
    
// Get dictionary parameter
    Prms := Dict.Params;
   
 Prm := Prms.FindById("PARAM");
    
// Determine that filtering is disabled by parameter, if parameter value is empty
    Prm.SkipOnNull := False;
    
// Save changes in the MDM dictionary
    (Dict As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, if parameter value is empty, all elements are hidden in the dictionary.

See also:

IRdsParam