Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{anchor:top}
{toc: class=contents}

h2. 概要
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
Yellowfinのビューは、ユーザー、ユーザーのレポート、およびデータベースの間を結びつけます。ビューの目的はエンドユーザーが専門的な知識を必要とせずにソースデータベースを使えるようにすることです。このセクションでは、基本的なビュー管理オプションのいくつかを解説します。


# 新規ビューを作成するには、以下の手順を実行します。
## 「データベースビュー」画面で「ビュー追加」をクリックします。または
!46.png|thumbnail,border=1!
## メインナビゲーションバーの「作成」メニューをクリックして、「ビュー」を選択します。
!46b.png!
「ビューの初期化」ページでは、ビューの作成方法や接続するデータソースの選択を行います。選択肢の意味は以下の通りです:
|| Builder作成方法 || Description説明 ||
| *[Drag and Dropドラッグ&ドロップエディター|ビューの作成#Drag and Drop Builder]* | 作成に、Yellowfinのビュービルダーを使用します。 \\ |
| *[Freehand SQLフリーハンドSQL|ビューの作成#Freehand SQL View]* | 作成に、SQLエディターを使用します。 \\ |
| *[Composite Viewコンポジットビュー|ビューの作成#Composite View]* | 複数のデータベースに接続するビューを作成する場合に使用します。 \\ |
| *[OLAP|ビューの作成#OLAP Cube View]* | 既存のOLAPキューブを選択します。新たな属性を加えることはできません。 \\ |
| *[Stored Procedureストアドプロシジャー|ビューの作成#Stored Procedure]* | データベースに実行されている既存のプロシジャーからビューを作ることができます。 \\ |
!47.png|thumbnail,border=1!
# ビューのカテゴリーを選択してください。このカテゴリーは、フィールドのカテゴリーを限定するのに用いられます。たとえば、販売ビューには、販売関連カテゴリーのフィールドだけが表示されるようにします。
# 新しいカテゴリーを作成するには、「カテゴリーの編集」をクリックします。新しいカテゴリーを追加するためのウインドウが開きます。


h2. ドラッグ&ドロップで作成
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
Yellowfinのウェブインターフェースにより、データベース内の複数のテーブルを簡単に結合することができます。






bq. See [Drag & Drop View Builder] for more information.

h2. フリーハンドSQLビュー
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
「フリーハンドSQL」を選択すると、直接Yellowfinのリポジトリにビューを書き込むことができます。ソースシステム上の使用可能なテーブルは、左側の「データベーステーブル」に一覧表示されます。
!48.png|thumbnail,border=1!
{color:#c00000}{*}Note:注意:*{color} SQLエディターを使用する際、結果はJavaアプリケーションでソートされますので、SQL文にはOrder Whenby句などのソート命令を含めないようにしてください。ビューがうまく動作しない原因になります。
writing
an
SQL view it is very important that you do not include an order by - since results are sorted by the Java application not the database.  The order by will cause your view to fail.


h2. Compositeコンポジットビュー
View
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
A「コンポジットビュー」を選択すると、複数のデータソースを使うビューを作成することができます。これにより、ユーザーは複数のデータベースからのデータをレポートの作成に使用することができます。
composite
view
allows youコンポジットビューは、データベースから表示されるテーブルを選択するのではなく、いろいろなデータベースに対して作成された既存のYellowfinビューを結合して作成します。
to
create
a view which joins multiple data sources together.  This allows users to create a report which includes data from these multiple databases.

The view builder for a composite view differs in that rather than displaying tables from a selected database it allows you to join existing Yellowfin views together and create virtual tables from any defined database.

# To create a composite view select the composite view option from the author drop down.
# You will also need to select a database in which you wish to store the view results.  This is needed since composite views can be highly complex and result in slow query performance by your users.  As a result Yellowfin schedules a query to generate the view and all its data on a regular basis to be stored in a specific warehouse database.
# コンポジットビューを作成するには、ドロップダウンメニューから「コンポジットビュー」を選択します。
# 作成にあたっては、合成されたビューの保存先データベースも選択しなければなりません。これはコンポジットビューが非常に複雑になり、ユーザーからのクエリーに対する応答速度が遅くなるのを避けるためです。結果として、Yellowfinはクエリーをビューとそのすべてのデータをここで指定されたデータベースに保管するようスケジュールします。
!49.png|thumbnail,border=1!





bq. See コンポジットビューの作成については、[複数ソースからのビュー|View from Multiple Sources] for information on creating composite views.

を参照してください。
h2. OLAP Cube ViewOLAPキューブ
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
An OLAP cube is a pre-aggregated structure on your database.  Like a data mart it already contains a set of dimensions and measures which have been pre-aggregated to support rapid reporting.
# To create an OLAP cube view select OLAP cube from the author drop down menu.
# Choose the source connection - Yellowfin will only provide OLAP source connections for you to choose from.
If no source exists you will have to create a specific OLAP source connection record.
# Choose the cube from a list of available cubes.

OLAPキューブは、データベース内に予め用意された多次元データモデルです。データマートがいい例ですが、迅速なレポートの実行のために最初から整理され「要約データ」として構築されユーザーに提供されます。

# OLAPキューブビューを作成するには、まずドロップダウンメニューから「OLAPキューブ」を選択します。
# 次にソース接続を選んでください 。Yellowfinは、選択可能なOLAPソース接続のみを表示します。
ソース接続が表示されない場合には、まずOLAPをサポートしているデータベースへのソース接続を作成してください。
# 表示されるキューブのリストから使用するキューブを選びます。

!olap.png|thumbnail,border=1!

{color:#c00000}{*}Note:注意:*{color} When creating an OLAP cube as a view you will have limited options for updating field information.  This is because most of the metadata is already contained in the cube itself.


h2. Stored Procedure
 OLAPキューブを使ってビューを作成する場合、フィールド情報の更新オプションが制限されます。これは、はじめからキューブ自身に必要なメタデータが含まれているからです。


h2. ストアドプロシジャー
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
WithYellowfinを使って、アプリケーションデータベース上で実行されるストアドプロシジャーに接続することができます。
Yellowfin
you can connect to stored procedures running on your application database.
# To connect to a stored procedure select the stored procedure options from the create view drop down list.
# Select the Database and then the stored procedure you wish to connect to.
# ストアドプロシジャーに接続するには、ドロップダウンメニューから「ストアドプロシジャー」を選択します。
# 接続したいデータベース、それに続いてそのデータベースで実行されるストアドプロシジャーを選択してください。
!sp1.png|thumbnail,border=1!
# Click the next arrow to continue to the stores procedure parameters page.  Yellowfin will automatically detect parameters which exist in your stored procedure and display this list on the page.
# You must fill in a value for each parameter.  The value is only used to return column at this stage of the view builder.  (The non-return fields will become automatic filters on the reports created from this stored procedure).
# When you have completed the parameter section click accept to return the list of fields in the result set.
「→」ボタンをクリックして、パラメーターページに進みます。Yellowfinは、あなたのストアドプロシジャーの中に存在するパラメーターを自動的に見つけ出して一覧表示します。
# 各パラメーターの値を入力する必要があります。この値はビュービルダーのこのステージで目的のカラムを返すためだけに使われます(入力フィールドは、このビューから作成されるレポートに対する自動フィルターとして働きます)。
# パラメーターセクションへの入力が終わったら、フィールドのリストを返すために「承認」をクリックしてください。
!sp2.png|thumbnail,border=1!
# Complete the metadata as you would for a standard view.  Note that the non-return parameters exist as filter fields.普通のビュー同様に、メタデータを定義してください。入力パラメーターがフィルターとして機能する点に注意が必要です。
!sp3.png|thumbnail,border=1!
# Filters will be added into each report created from the stored procedure automatically.  They will not be visible on the report data page but will be displayed on the report filter page.

フィルターは、ストアドプロシジャーから作成されるレポートに自動的に加えられます。それらはレポートデータページには表示されず、レポートフィルターページに表示されます。

\\
\\
{horizontalrule}
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}