30日間の無料評価版をお試しいただけます。

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Table of Contents
classcontents

...

概要

Styleclass
ClasstopLink

top

Table conditions permit you to limit the data returned from a specific table. For example you may wish to limit your query of a sales table to specific Product transactions rather than allowing a user to query all data in the table.

ページトップ

テーブルの条件設定を使って、テーブルから読み出されるデータを制限することができます。たとえば、販売テーブルのすべてのデータではなく、特定の製品に関するデータのみを読み出し可能にするような場合に使用します。

条件の作成

...

Styleclass
ClasstopLink

...

ページトップ

  1. The item that has been selected on the report data page for filtering. E.g. Cost.
  2. The Operand drop down lets you select what type of filter to be used. For example if the date is greater than 0
  3. The Value entered for the condition
  4. The brackets allow for greater complexity in data filtering by using AND and OR with the where clause operator.
  5. The where clause operator allows the user to set multiple filters using AND or OR. For example filter all People where AGE is Greater than 50 or Gender = Female.
  6. The move up and down buttons allows the user to build complex bracketing filters. The level of a statement within the bracket will affect the overall filter statement and impact upon the data returned in the query.
  7. The condition logic display allows a user to read a summary of the filter that they have defined. Click the refresh link to update the logic if conditions have changed in the form.

When defining a filter initially set the operand drop down to the desired value. The options within the drop down will vary based upon the type of field that the filter is to be applied to.

Possible values for the operand include:

Operand

Description

Equal to

Equal to a single alphanumeric or string value

Greater than

Greater than a single alphanumeric or string value

Greater than or equal to

Greater than or equal to a single alphanumeric or string value

Less than

Less than a single alphanumeric or string value

Less than or equal to

Less than or equal to a single alphanumeric or string value

Different from

Not equal to or different from a single alphanumeric or string value

Between

Between variable 1 and variable 2 these will need to be legitimate parameters such as date, age etc.

Not Between

Not between variable 1 and variable 2 these will need to be legitimate parameters such as date, age etc.

In List

One or more alphanumeric or string values

Not In List

Two or more alphanumeric or string values

Is Null

Record contains no value for selected attribute. No Parameter can be set

Is Not Null

Record contains a value for selected attribute. No Parameter can be set

Like

Records that contain the same letter or letters.

Starts With

String starts with letter or letters

Ends With

String end with letter or letters

...

  1. たとえば「COST」のように、レポート上でフィルターする項目を選びます。
  2. ドロップダウンメニューからフィルターが使用するオペランドを選択します。たとえば0より大きいというように選択します。
  3. 条件に対する値を入力します。
  4. 条件演算子、AND、ORをカッコで組み合わせ、より複雑なフィルタリングを行うことができます。
  5. where条件演算子に、ANDまたはORを使って複数のフィルターをセットすることができます。たとえば、年齢が51歳以上か、または性別が女性であるすべての人、というような条件を設定できます。
  6. 上下への移動ボタンを使って条件の適用順序を指定します。ここで設定する前後関係はそのままクエリーに反映します。
  7. 条件ロジック表示欄に、上で設定したフィルターの概要が表示されます。条件編集後には、表示を更新するために「更新」をクリックしてください。

フィルターの作成にあたっては、選択した値に対するオペランドをドロップダウンメニューから選択します。このオプションは、フィールドの種類に基づいて構成されるドロップダウンメニューから選択できます。

以下にオペランドの一覧を示します:

オペランド

説明

等しい(=)

指定した1つの数字または文字列と等しい

より大きい(>)

指定した1つの数字または文字列より大きい

以上(≧)

指定した1つの数字または文字列以上

より小さい(<)

指定した1つの数字または文字列より小さい

以下(≦)

指定した1つの数字または文字列以下

と異なる(≠)

指定した1つの数字または文字列と等しくない

の間(~)

日付、年齢などの比較可能な値が変数1と変数2の間にある

の間でない

日付、年齢などの比較可能な値が変数1と変数2の間にない

一覧に含む

指定した一覧の数字または文字列に含まれる

一覧に含まない

指定した一覧の数字または文字列に含まれない

IS NULL

選択したカラム(列)の値がNULL(パラメーターはセットできません)

IS NOT NULL

選択したカラム(列)の値がNULLでない(パラメーターはセットできません)

Like

指定した文字、文字列を含む、もしくは一致する

で始まる

指定した文字、文字列で始まる

で終わる

指定した文字、文字列で終わる

条件の新規作成

Styleclass
ClasstopLink

top

  1. Select the table you wish to apply a condition to and click the properties link. This will open the table properties in the View Option Panel.
  2. Click the conditions expand icon to show the conditions and click the add link. This will open the conditions popup.
    Image Removed
  3. Click Add to create a condition, select the column you wish to place a condition on. Select the operand and enter a value. Click Add to add the condition into the list.
    Image Removed
  4. Continue to add conditions in this manner - use the AND OR operands and bracketing to create complex conditions.
    Click the OK link to close the popup window and apply the changes to the conditions section of the table properties.
    Image Removed

...

ページトップ

  1. 条件を設定したいテーブルの「プロパティ」をクリックします。「ビューオプション」欄にプロパティが表示されます。
  2. 「条件」の展開アイコンをクリックして開き、「追加」をクリックします。「条件」ウインドウが開きます。
    Image Added
  3. 「新規」をクリックして条件を作成し、条件を適用するカラムを選択します。オペランドを選んで、値を入力してください。「追加」をクリックして作成した条件をリストに加えます。
    Image Added
  4. 同様にして必要なだけ条件を追加します。AND、OR、カッコなどを使えば複雑な条件を設定することができます。
    条件設定が完了したら、「保存して閉じる」をクリックしてウインドウを閉じます。設定した条件は図のように「ビューオプション」欄に表示されます。
    Image Added

日時条件

Styleclass
ClasstopLink

top

Often it is useful to limit the result set in a view by a data condition. For example to only return the last 90 days data. This can be achieved through a Current Date condition on a view table.

  1. On the condition popup select the date that you wish to filter on. Based on selecting a date the current date option will be displayed.
  2. Select the + - for setting the condition and the number of days which are relevant.
  3. Click Add to add the item to your condition list. Click OK to save and close the popup.
    Image Removed

...

ページトップ

ビューにセットされる結果を日時によって限定したいケースがあります。たとえば「過去90日間のデータ」というように。そのような条件は、ビューテーブルに日時条件を指定します。

  1. 「条件」ウインドウで、日時のカラムを選択します。日時のカラムを選ぶと、自動的に「現在の日付」オプションが表示されます。
  2. 「+」「-」をクリックして過去、または未来の日数の条件を設定します。
  3. 「追加」をクリックして作成した条件をリストに加え、「保存して閉じる」をクリックして「条件」ウインドウを閉じます。
    Image Added

動的条件

Styleclass
ClasstopLink

top

A dynamic condition is a condition that is applied based on a user's preference. For example a user may want to view currency data in their preferred currency. If you have a currency conversion table you will be able to create a calculated field based on a preferred currency.

Dynamic conditions can be used in a variety of ways such as converting metric into empirical measures, converting currencies or converting product descriptions into preferred languages.

How they Work

The dynamic condition works by allowing you to join you data to a translation table e.g. Currency. This table will have multiple values for each currency of interest - so normally you would create multiple records if the join had been applied by with no condition.

A dynamic condition is then applied to ensure that for each user only one possible currency is used. This privatises the data based on the currency selection in the user profile.

Create a Dynamic Condition

To create a dynamic condition you will need to do the following.

  1. Tick the dynamic condition option when creating a condition, and select the filter type that you wish to apply. This will be a list of all the valid user parameter reference codes that exist.
  2. Choose the default value - this is used as the default if the user has not selected a preferred value in their profile.

...

ページトップ

動的条件は、ユーザーの優先順位を基に適用される条件です。たとえば、ユーザーがあらかじめ選択しておいた通貨で通貨データを表示する場合などです。通貨変換テーブルがあれば、優先する通貨で計算フィールドを作成することができます。

動的条件はさまざまな場面で利用できます。たとえば、メトリックの経験測度への変換、通貨の変換、製品説明の翻訳などです。

動的条件の仕組み

動的条件は、ユーザーがデータを「通貨」などの翻訳テーブルに結合させると機能します。このテーブルには、目的の通貨ごとに複数の値があります。通常は、結合になんの条件も適用されていなければ、複数のレコードを作成します。

そこで、動的条件では、1人のユーザーに対して1種類の通貨しか使用しないようにします。ユーザープロフィールで選択した通貨に基づいてデータが個人向けにカスタマイズされます。

動的条件の作成

動的条件を作成するには、以下の手順に従います。

  1. 以前に説明したように、条件の作成を開始します。
  2. 条件を作成する際に「動的」オプションをオンにします。すると、別のオプションを使用できるようになります。
    Image Added
  3. 一連のコードを作成して、可能性がある値がそれぞれ使用されるようにする必要があります。これらのコードは、「動的フィルターコードの作成」をクリックして、参照コードを作成する場合とほぼ同じ方法で作成します。
    Image Added
  4. 次に、使用可能なユニークな各コードについてレコードを作成する必要があります。この例では、データに対応して使用する可能性がある各通貨に対してレコードを作成します。最初の値はコードまたはデータベーステーブル内の値とします。2番目の値は、説明です。これはユーザーが各自の優先オプションを選択する際に表示されます。3番目の値は、カスタムのソート順を指定するために使用できます。最も多く選択される値を上位にリストして、すばやく選択できるようにするために使用する場合があります。
    Image Added
  5. コード一覧が完了すると次の図のようになります。「保存して閉じる」をクリックして完了します。
    Image Added
  6. 次に、「動的フィルターコード」一覧からコードを選択して、一覧からデフォルト値を選択する必要があります(デフォルト値は、ユーザーがプロファイルで優先する値を選択していない場合に使用されます)。変更内容を保存します。
    Image Added
  7. 条件は、次に示すように表示されます。
    Image Added


動的条件に対するユーザーの値の定義

動的条件の作成が完了したら、ユーザーは動的条件に使用する値を選択できます。

  1. 「システムナビゲーション」内のユーザー名をクリックして「ユーザーオプション」を開き、「選択」をクリックします。
    Image Added
  2. 使用可能なすべての動的条件が、この設定の上部に表示されます。この例では「通貨」(動的フィルターコードの名前)が表示され、ドロップダウンリストに選択可能な値が表示されます。ユーザーに対して適切な値を選択します。
    Image Added
  3. 変更内容を保存します。

条件のクリア

Styleclass
ClasstopLink

top

ページトップ

条件をテーブルから取り除くには、テーブルの属性を開き、「条件」欄にある「クリア」をクリックします。そのテーブルに設定されたすべての条件が削除されます。  To remove or clear the conditions from a table select the table properties and click the Clear link. This will remove all the conditions associated for that table.

horizontalrule
Styleclass
ClasstopLink

topページトップ