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) 

Using the same variable multiple times

In case you want to use the same parameter multiple times, use '&' operator in the URL. E.g. https://URL/bi/report/detail/IDofReport?parameter1=Czech Republic&parameter1=Japan

Sv translation
languageja
Note

Variablesを十分参照して下さい。

基本情報

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 - BellaDati インストールのURL(IP)
    2. IDofReport - レポートの数値ID(例: 279)

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

変数の値を埋め込みビュー(iframe)に渡すこともできます。

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

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

  1. ダッシュボードに変数付きのビューを追加します。この例では、変数"text"を持つ同じビューが使用されます。
  2. URLの最後にコード"text=another example"を追加し、Enterをクリックします。値が表示されます。

 

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

フィルターパラメーターは、変数と同じ方法で渡すことができます。

  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

変数とフィルターのリセット

パラメーターresetVariablesを使用して、レポート(またはダッシュボード)の変数をリセットすることができます(例: https://URL/bi/report?resetVariables)。ユーザーは変数をリセットし、同時に新しい値を設定できます(例: https://URL/bi/report?resetVariables¶meter1=value)。

...