IBindingDimCombo.StoreAsString

Syntax

StoreAsString: Boolean;

Description

The StoreAsString property determines whether multiple selection of dictionary elements is saved as an XML string.

Comments

Available values:

The property is used for multiple selection of dictionary elements in a regular report cell if a dictionary contains linked attributes. For correct displaying of multiple selection in a cell, the StoreAsString property saves the selection to a cube fact as a string. Multiple selection of dictionary elements is displayed in a cell using the dictionary drop-down list values.

The property value can also be set in the binding string in the format:

STOREASSTRING="TRUE"

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier and a dictionary with the D_SEP identifier. The dictionary must contain the TERRID linked attribute.

Add links to the Metabase, Report, Tab system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Report: IPrxReport;
    BM: IBindingManager;
    DimComboBinding: IBindingDimCombo;
    Tab: ITabSheet;
    Style: ITabCellStyle;
Begin
    // Get the current repository
    mb := MetabaseClass.Active;
    // Get regular report
    Report := mb.ItemById("REPORT").Edit As IPrxReport;
    // Get cell style in top left corner of active report sheet
    Tab := (Report.ActiveSheet As IPrxTable).TabSheet;
    Style := Tab.Cell(00).Style;
    // Set cell format
    Style.Binding := "UI=""DimCombo"" SLICEDIM="""" FIXEDDIM="""" DISABLEATTRIBUTESELECT="""" 
                      ID=""D_SEP"" ATTRIBUTEVALUE=""TERRID"" STOREASSTRING=""TRUE"""
;
    // Save changes
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the regular report first cell sets the drop-down list format that supports correct displaying of multiple selection of elements of the dictionary with the D_SEP identifier.

See also:

IBindingDimCombo