ILanerMetaAttributeValue.ParamId

Syntax

ParamId: String;

Description

The ParamId property determines identifier of the parameter that sets value of the attribute.

Comments

If the parameter identifier is not set, the parameter value is determined by the ILanerMetaAttributeValue.Value property.

If the ParamId and ILanerMetaAttributeValue.Value properties are set, the attribute value is determined by the last set property.

Example

Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A workbook of the time series database that contains some series and an integer parameter with the COUNTRY_PARAM identifier should be loaded to UiErAnalyzer1. The time series database must include the custom time series attribute with the COUNTRY identifier.

The example is a handler of the OnClick event for the Button1 component.

Add links to the Express, ExtCtrls, Forms, Laner, Tab, and Transform system assemblies.

Sub MetaAttrVal;
Var
    Eax: IEaxAnalyzer;
    ParamProv: ITsParamProvider;
    ParamVal: ITsModelParamValue;
    Series: ILanerSerie;
    AttrValList: ILanerMetaAttributeValueList;
    AttrVal: ILanerMetaAttributeValue;
    Laner: ILaner;
Begin
    Eax := UiErAnalyzer1.ErAnalyzer;
    // Get an object used to work with parameters
    ParamProv := Eax.ParamProvider As ITsParamProvider;
    // Set value of the COUNTRY_PARAM parameter
    ParamVal := ParamProv.ParamValues.FindById("COUNTRY_PARAM");
    ParamVal.Value := 914;
    // Get a selected  series 
    Series := LanerBox1.SelectedSeries(0);
    // Get collection of series attributes' values
    AttrValList := Series.MetaAttributeValueList;
    // Indicate that value of the COUNTRYattribute is determined with the COUNTRY_PARAM parameter
    AttrVal := AttrValList.FindById("COUNTRY");
    AttrVal.ParamId := "COUNTRY_PARAM";
    // Update data
    Laner := Eax.Laner;
    Laner.Refresh;
End Sub MetaAttrVal;

After executing the example value of the COUNTRY attribute is determined with the COUNTRY_PARAM parameter for the series highlighted in the LanerBox1 component.

See also:

ILanerMetaAttributeValue