数据源: Essbase
HsGetVariable 检索替代变量的关联值。
不能在 Smart Slice 中使用 HsGetVariable。
HsGetVariable 可以使用默认连接名称、专用连接名称、共享连接或多范围网格上的 Excel 指定范围,如下所示:
默认连接: HsGetVariable("替代变量名")
专用连接: HsGetVariable("PrivateConnectionName","替代变量名")
共享连接: HsGetVariable("WSFN|ProviderType|服务器|应用程序|数据库","替代变量名")
多范围网格上的指定范围: HsGetVariable("范围名称","替代变量名")
默认连接:HsGetVariable("CurMonth")
专用连接:HsGetVariable("stm10026_Sample_Basic","CurMonth")
共享连接:HsGetVariable("WSFN|Essbase|esbsvr|Sample|Basic","CurMonth"
指定范围:HsGetVariable("stm10026_Sample_Basic","CurMonth")
注: | 与号 (&) 通常用于表示替代变量,但在此函数中是可选的。 |