HsGetVariable

描述 Smart View 函數 HsGetVariable。

雲端資料來源類型:Oracle Essbase

內部部署資料來源類型:Oracle Essbase

描述

HsGetVariable 會擷取替換變數的關聯值。

您無將 HsGetVariable 與智慧型切片搭配使用。

語法

HsGetVariable 可以使用預設連線名稱、專用連線名稱、共用連線或多重範圍方格上的 Excel 具名範圍,如下所示:

  • 預設連線: HsGetVariable("substitution variable name")

  • 專用連線: HsGetVariable("PrivateConnectionName","substitution variable name")

  • 共用連線: HsGetVariable("WSFN|ProviderType|Server|Application|Database","substitution variable name")

  • URL連線:HsGetVariable("URLFN|URL|伺服器|應用程式|資料庫","替代變數名稱")

  • 多重範圍方格上的具名範圍: HsGetVariable("range name","substitution variable name")

如需詳細的語法資訊,請參閱手動建立函數

範例

  • 預設連線:HsGetVariable("CurMonth")

  • 專用連線:HsGetVariable("myprivateconnection_Sample_Basic","CurMonth")

  • 共用連線:HsGetVariable("WSFN|Essbase|esbsvr|Sample|Basic","CurMonth"

  • URL 連線:HsGetVariable("URLFN|https://<servername:port>/aps/SmartView|<servername:port>|Application|Database","substitution variable name")

  • 具名範圍:HsGetVariable("myprivateconnection_Sample_Basic","CurMonth")

註:

(&) 符號一般用於表示替換變數,但在此函數中為選用。

註:

HsGetVariable 不支援非 ASCII 變數值。