Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen
Note

It is recommended to get familiar with Report Variables.

Basic information

Variables can be used in many ways in BellaDati. In some cases it might be required to open report or dashboard with values of variable already set. When only one value is needed, default value of variable can be used. If the value needs to be set dynamically, passing parameteres in URL is the best option.

Column
width200

On this page:

Table of Contents

Passing parameteres in URL

This example shows how to add variable to indicator formula and then set its value through URL.

  1. Create new report
  2. Open Variables and filter panel
  3. Add new number variable identified as "var" and click on Save.
  4. Add new table
    1. Add formula indicator - see example formula below. Then click on Save.

    2. Add drill-down and save the table and also the report. Since default value of variable is not set, the indicator values should be empty.
  5. Add some value to variable and click on Save. Correct table should be now displayed.
  6. Value of this variable can be set by opening this URL: https://URL/bi/report/detail/IDofReport?var=20
    1. URL - URL (IP) of your BellaDati installation
    2. IDofReport - numerical ID of report (for example 279)

Passing parameter in embed view

It is also posssible to pass a value of variable into embed view (iframe).

  1. The scenario is the same as in report. In this example a text variable "text" is used in KPI label.
  2. Create new embed view by clicking on export icon and selecting embed code.
  3. Click on "Show as external page".
  4. Add code "text=custom text variable" at the end of the URL and click on Enter. The value should be now displayed.

Passing parameter in dashboard

  1. Add view with variable in dashboard. The same view with variable "text" is used in this example.
  2. Add code "text=another example" at the end of the URL and click on Enter. The value should be now displayed.

 

Passing Filter Parameters

Filter parameters can be passed in the same way as variables.

  1. In order to set the filter parameter, go to Variables panel and select option Edit.
  2. Select type filter define filter code and click button Add.
  3. This filter code can be used to pass filter parameters in the URL. The URL should look like following: https://URL/bi/report/detail/IDofReport?parameter1=Czech Republic
  4. In case you would like to change the filter code, go to advanced settings of defined attribute filter:
  5. If you update the filter code, you should also reflect this code in the URL, so the URL should look like following: https://URL/bi/report/detail/IDofReport?country=Czech Republic

Resetting Variables and Filters

it is possible to reset the variables of the report (or dashboard) by using parameter resetVariables (e.g. https://URL/bi/report?resetVariables). Users can reset the variables and set new values at the same time (e. g. https://URL/bi/report?resetVariables&parameter1=value) 

Sv translation
languageja
Note

レポート変数を十分参照して下さい。

基本情報

BellaDatiでは様々な方法で変数を使うことができます。いくつかの場合では変数値の設定されたレポートやダッシュボードを開かなければいけません。1つの値が必要な場合、既定の変数値が使用できます。もし値をダイナミックに設定する必要がある場合、最も良いオプションはURLパラメーターを渡すことです。

Column
width200

このページでは:

Table of Contents

パラメーターをURLで渡す

この例では変数をインディケーターフォーミュラに追加しURLを通して値を設定する方法を示します。

  1. 新規レポートの作成
  2. 変数とフィルターパネルを開く

  3. "var"として認識されている新規変数を追加し、保存をクリック
  4. 新規表を追加
    1. フォーミュラインディケーターを追加 以下のフォーミュラの例を見てください。次に保存をクリックします

    2. ドリルダウンを追加し表とレポートを保存。既定値や変数が設定されていないのでインディケーター値は空です。
  5. 変数に値を追加し、保存をクリック。正しい表が表示されるはずです。
  6. この変数値は以下のURLを開くことで設定できます:  https://URL/bi/report/detail/IDofReport?var=20
    1. URL - URL BellaDati インストールのURL(IP)
    2. IDofReport - レポートの数字のID(. 279)

パラメーターを埋め込みビューで渡す

変数値を埋め込みビューで渡すことも可能です(iframe)

  1. シナリオはレポートと一緒です。この例ではテキスト変数"text"KPIラベルに使用されています。
  2. 出力アイコンをクリックし埋め込みコードを選択することで新規埋め込みビューを作成します。
  3. 外部ページとして表示をクリックします。
  4. URLの最後にコード"text=custom text variable"を追加しエンターキーを押します。その後値が表示されます。

パラメーターをダッシュボードで渡す

  1. ダッシュボードの変数でビューを追加します。変数"text"を用いる同じビューをこの例では使っています。
  2. URLの最後にコード"text=another example"を追加しエンターキーを押します。その後値が表示されます。

 

フィルターパラメーターを渡す

フィルターパラメーターは変数と同じように渡すことができます。

  1. フィルターパラメーターの設定には、変数パネルに進み編集オプションを選択してください。
  2. フィルターの種類とフィルターコードの定義を選択し追加を押します。
  3. このフィルターコードはURLにフィルターパラメーターを渡すことにも使えます。 URLは以下のようなものになります: https://URL/bi/report/detail/IDofReport?parameter1=Czech Republic 
  4. フィルターコードを変更したい場合は、既定義アトリビュトフィルターのより先進的な設定に進んでください。
  5. フィルターコードを更新した場合、URLにも反映させてください。URLは以下のようになります: https://URL/bi/report/detail/IDofReport?country=Czech Republic