Table of Contents

Class SliceField

Namespace: FastReport.Olap.Slice
Assembly: FastCube.Core.dll

Raw field of slice - can be used as base for Dimensions and Measures. Slice fields comes from Cube and in fact are wrappers around them

public class SliceField

Inheritance

objectSliceField

Constructors

SliceField(SliceFields, CubeField)

Creates a new instance.

public SliceField(SliceFields sliceFields, CubeField cubeField)

Parameters

sliceFields SliceFields

cubeField CubeField

Properties

AvailableUniqueValuesCount

Gets number of avaliable unique values.

public int AvailableUniqueValuesCount { get; }

Property Value

int

CanUseDateTimeSplit

Flag which indicates whether field can have date/time sub-fields

public bool CanUseDateTimeSplit { get; }

Property Value

bool

Caption

Field caption

public string Caption { get; set; }

Property Value

string

Children

List of children

public List<SliceField> Children { get; }

Property Value

List<SliceField>

Collapsed

Gets or sets collapsed value.

public bool Collapsed { get; set; }

Property Value

bool

CollapsedSubGroup

Gets or sets collapsed sub group value.

public bool CollapsedSubGroup { get; set; }

Property Value

bool

CubeField

Reference to CubeField

public CubeField CubeField { get; }

Property Value

CubeField

CurrentValue

Current field value for script handlers

public object CurrentValue { get; }

Property Value

object

DataType

Field data type

public DataType DataType { get; }

Property Value

DataType

DateTimeSplitsCount

Number of date/time sub-fields

public int DateTimeSplitsCount { get; }

Property Value

int

DeniedUniqueValuesCount

Gets number of denied unique values.

public int DeniedUniqueValuesCount { get; }

Property Value

int

DisplayFormat

Gets or sets diaplay format.

public FormatBase DisplayFormat { get; set; }

Property Value

FormatBase

ExistsOtherGroup

Gets or sets indicator that is exists other group.

public bool ExistsOtherGroup { get; }

Property Value

bool

GroupsCount

Gets or sets number of groups.

public int GroupsCount { get; }

Property Value

int

GroupsManager

Gets reference to groups manager.

public GroupsManager GroupsManager { get; }

Property Value

GroupsManager

HasGroups

Gets an indicator that field has groups.

public bool HasGroups { get; }

Property Value

bool

Height

Height of field (for grid)

public int Height { get; set; }

Property Value

int

HeightSubGroup

Height of sub group (for grid)

public int HeightSubGroup { get; set; }

Property Value

int

Index

Field index

public int Index { get; }

Property Value

int

Name

Field name

public string Name { get; }

Property Value

string

Parent

Reference to parent field

public SliceField Parent { get; }

Property Value

SliceField

PopupShowAvailable

Flag to show only available (not filtered by neighbour fields) unique values (for grid)

public bool PopupShowAvailable { get; set; }

Property Value

bool

PopupWidth

Width of popup window (for grid)

public int PopupWidth { get; set; }

Property Value

int

Slice

Reference to Slice (readonly)

public Slice Slice { get; }

Property Value

Slice

UVFilterType

Gets or sets filter type of unique values.

public UniqueValuesFilterType UVFilterType { get; set; }

Property Value

UniqueValuesFilterType

UniqueValueFilterActive

Gets indicator that unique value filter is active.

public bool UniqueValueFilterActive { get; }

Property Value

bool

UniqueValueSingleIndex

Gets or sets single index of unique value.

public int UniqueValueSingleIndex { get; set; }

Property Value

int

Width

Width of field (for grid)

public int Width { get; set; }

Property Value

int

WidthSubGroup

Width of sub group (for grid)

public int WidthSubGroup { get; set; }

Property Value

int

Methods

AddDateTimeSplit(DateTimePart)

Adds date/time sub-field

public bool AddDateTimeSplit(DateTimePart dateTimePart)

Parameters

dateTimePart DateTimePart

Part to add

Returns

bool

True - success

BeginUpdateField()

Geting update field.

public void BeginUpdateField()

BuildUniqueValuesTree(bool)

Builds Tree with unique ID in nodes Mostly method for internal use in grids

public Tree BuildUniqueValuesTree(bool showAvailable)

Parameters

showAvailable bool

Flag to show only available uniques (ignore uniques which filtered by other dimension filters)

Returns

Tree

Tree

CanCreateDateTimeSplit(DateTimePart)

Determines whether it is possible to create particular date/time sub-field

public bool CanCreateDateTimeSplit(DateTimePart dateTimePart)

Parameters

dateTimePart DateTimePart

date/time part

Returns

bool

True if sub-field can be created

EndUpdateField()

Ends update field.

public void EndUpdateField()

GetAllowedUniqueValue(int)

Gets allowed unique values by value id.

public bool GetAllowedUniqueValue(int valueId)

Parameters

valueId int

Returns

bool

GetAvailableUniqueValue(int)

Gets available unique value by valuee id.

public bool GetAvailableUniqueValue(int valueId)

Parameters

valueId int

Returns

bool

GetCountValuesInGroup(int)

Gets number of values in group by group id.

public int GetCountValuesInGroup(int groupId)

Parameters

groupId int

Returns

int

GetGroupIdByOrder(int)

Gets group id by order/

public int GetGroupIdByOrder(int index)

Parameters

index int

Returns

int

GetGroupName(int)

Gets group name

public string GetGroupName(int groupId)

Parameters

groupId int

Returns

string

GetGroupNameByOrder(int)

Gets group name by order (by index).

public string GetGroupNameByOrder(int index)

Parameters

index int

Returns

string

GetGroupedUniqueValueCaption(int, int)

Gets grouped unique value caption.

public string GetGroupedUniqueValueCaption(int groupId, int indexInGroup)

Parameters

groupId int

indexInGroup int

Returns

string

GetUnGroupedUniqueValueCaption(int)

Gets ungrouped unique value caption.

public string GetUnGroupedUniqueValueCaption(int indexInUnGroup)

Parameters

indexInUnGroup int

Returns

string

GetUnGroupedUniqueValueIdByOrder(int)

Gets ungrouped unique value id by order (by index).

public int GetUnGroupedUniqueValueIdByOrder(int index)

Parameters

index int

Returns

int

GetUnGroupedUniqueValuesCount()

Gets number of ungrouped unique values.

public int GetUnGroupedUniqueValuesCount()

Returns

int

GetUniqueValue(int)

Get value of particular unique.

public object GetUniqueValue(int ValueId)

Parameters

ValueId int

unique value ID

Returns

object

Unique value

GetUniqueValueCaption(int)

Get caption of particular unique.

public string GetUniqueValueCaption(int ValueId)

Parameters

ValueId int

unique value ID

Returns

string

String representation of unique value

GetUniqueValueFromRecord(int)

Get value from record index

public object GetUniqueValueFromRecord(int recordIndex)

Parameters

recordIndex int

record index of source data

Returns

object

Unique value

GetUniqueValueIdAndVariantFromRecord(int, out object)

Get both unique ID and value from record index

public int GetUniqueValueIdAndVariantFromRecord(int recordIndex, out object value)

Parameters

recordIndex int

record index of source data

value object

variable to save value

Returns

int

unique ID

GetUniqueValueIdFromRecord(int)

Get unique ID from record index

public int GetUniqueValueIdFromRecord(int recordIndex)

Parameters

recordIndex int

record index of source data

Returns

int

unique ID

GetUniqueValueIdInGroupByOrder(int, int)

Gets unique value id in group by order (by group id and index).

public int GetUniqueValueIdInGroupByOrder(int groupId, int index)

Parameters

groupId int

index int

Returns

int

GetUniqueValuesCount()

Count of unique values for field

public int GetUniqueValuesCount()

Returns

int

Count

GetUniqueValuesFilterStateOfGroup(int)

Gets state of group.

public CheckState GetUniqueValuesFilterStateOfGroup(int groupId)

Parameters

groupId int

Returns

CheckState

HaveDateTimeSplit(DateTimePart)

Searches for date/time sub-field

public bool HaveDateTimeSplit(DateTimePart dateTimePart)

Parameters

dateTimePart DateTimePart

Part to search for

Returns

bool

True if found

InverseFilter()

Inverses filter.

public void InverseFilter()

Load(XmlItem, int)

Load from XML item

public void Load(XmlItem item, int version)

Parameters

item XmlItem

Item to load from

version int

Format version

RemoveDateTimeSplit(DateTimePart)

Removes date/time sub-field

public bool RemoveDateTimeSplit(DateTimePart dateTimePart)

Parameters

dateTimePart DateTimePart

Part to remove

Returns

bool

True - success

RollBackField()

Rolls back field.

public void RollBackField()

Save(XmlItem)

Save to XML item

public void Save(XmlItem item)

Parameters

item XmlItem

XML item

SetAllAllowed()

Sets all allowed.

public void SetAllAllowed()

SetAllDenied()

Sets all denied.

public void SetAllDenied()

SetAllowedUniqueValue(int, bool)

Sets allowed unique value.

public void SetAllowedUniqueValue(int valueId, bool value)

Parameters

valueId int

value bool

SetGroupName(int, string)

Sets group name.

public void SetGroupName(int groupId, string groupName)

Parameters

groupId int

groupName string

SetGroupNameByOrder(int, string)

Sets group name by order (by index).

public void SetGroupNameByOrder(int index, string groupName)

Parameters

index int

groupName string

SetRangeFilter(Ranges)

Sets range filter.

public void SetRangeFilter(Ranges ranges)

Parameters

ranges Ranges

SetUniqueValuesFilterStateOfGroup(int, CheckState)

Sets state of group.

public void SetUniqueValuesFilterStateOfGroup(int groupId, CheckState checkState)

Parameters

groupId int

checkState CheckState

SetUniqueValuesGroupSingleIndex(int)

Sets single index.

public void SetUniqueValuesGroupSingleIndex(int groupId)

Parameters

groupId int