Interface Property

interface Property {
    __id__?: string;
    caption?: string;
    column?: string;
    dataType?: string;
    defaultHierarchy?: string;
    description?: string;
    dimension?: string;
    entity?: string;
    expression?: string;
    foreignKey?: string;
    formatter?: string;
    hierarchies?: PropertyHierarchy[];
    hierarchyLevelFor?: string;
    hierarchyNodeFor?: string;
    hierarchyParentNodeFor?: string;
    keyExpression?: SQLExpression;
    memberCaption?: string;
    members?: Member[];
    name: string;
    properties?: EntityProperty[];
    role?: AggregationRole;
    rt?: boolean;
    semantic?: Semantics;
    semantics?: {
        formatter?: string;
        semantic?: Semantics;
    };
    text?: string | EntityProperty;
    type?: string;
    uniqueName?: string;
    unit?: string | EntityProperty;
    visible?: boolean;
}

Hierarchy

Properties

__id__?: string
caption?: string

Caption of dimension

column?: string

The column of Dimension table for this property

dataType?: string
defaultHierarchy?: string
description?: string
dimension?: string
entity?: string

所属的 Entity

expression?: string
foreignKey?: string

The foreignKey of Fact table for this property

formatter?: string

Deprecated

use semantics

hierarchies?: PropertyHierarchy[]
hierarchyLevelFor?: string

Deprecated

hierarchyNodeFor?: string

Deprecated

hierarchyParentNodeFor?: string

Deprecated

keyExpression?: SQLExpression
memberCaption?: string

The caption field of members in this property

members?: Member[]

如当 Dimension = "Measures" 时可以设置 members 为 ["Gross Margin", "Discount"] 等度量字段名 也可以为 dimension 设置固定的成员

name: string
properties?: EntityProperty[]

维度的属性字段

Property role

rt?: boolean

Property is in Runtime only, not in Semantic Model

semantic?: Semantics

Deprecated

use semantics

semantics?: {
    formatter?: string;
    semantic?: Semantics;
}

Type declaration

  • Optional formatter?: string
  • Optional semantic?: Semantics
text?: string | EntityProperty

Deprecated

use memberCaption

type?: string

维度类型, 或字段 DB 类型

uniqueName?: string
unit?: string | EntityProperty
visible?: boolean

Visible Property

Generated using TypeDoc