Anchor | ||||
---|---|---|---|---|
|
Table of Contents | ||
---|---|---|
|
Overview
In order to ensure that User Prompt filter value selection is as easy as possible for the user, it's a good idea to cache your filters, creating lists, rather than prompting them to enter values manually. It's also helpful to create dependencies between filters that are related.
For example, if you have a Product Type and Product Code filter, making the Product Code dependent on Product Type will allow the user to nominate a type, and only see the products that belong to that type, rather than the whole list.
Setup
- Add the required filters to your report
- Make sure the filters are listed in order of dependency; this will make it clearer to the user.
- Leave the filters as User Prompt so they are available for the user.
In this example, we've used the Camp Region, Camp Country, and Camp Name as filters, all set to In List in order to allow the user to select multiple values if required.
- Cache the top level filter of the dependency structure
- On the Data or Output step, click on the Filter Formatting menu at the top of the menu ribbon.
- Select the top level filter from the drop down list provided.
- Open the Entry Style menu, set the Entry Type to Value List Selection, and the values to be Cached Values.
- Click Refresh Now to generate a list of values for the filter.
- Set the second level filter to be dependent on the top.
- While in the Filter Formatting menu, select the second level filter from the filters list on the left.
- Open the Display menu and set the Display Dependent On value to the top level filter.
- Cache the second level filter as before
- Repeat step 2 instructions for this filter
Note: when the dependency and caching is set up correctly, the second filter will be hidden until a value for the first filter has been selected. Each time values for the first filter are changed, the second filter value list should be refreshed.
- Repeat step 2 instructions for this filter
- Set the dependency for remaining levels
- For each of the remaining filter levels, you will need set the dependency to the filter level directly above it, and then cache the filter.
Once you've completed these steps, you should have filters available on your report that should display once the level above has a selection, and should refresh when that selection is changed.
- For each of the remaining filter levels, you will need set the dependency to the filter level directly above it, and then cache the filter.
Use
...
概要
ユーザープロンプトフィルター値の選択をユーザーにとってできるだけ簡単なものにするには、手動で値を入力するように求めるのではなく、フィルターをキャッシュして一覧を作成するのが賢明です。また、関連するフィルター間の従属関係を作成しておくと役立ちます。
たとえば、Product TypeとProduct Codeというフィルターがある場合、Product CodeをProduct Typeに従属させると、ユーザーがタイプを指定したときに、全部の一覧ではなく、そのタイプに属する製品のみを表示できます。
設定
- 必要なフィルターをレポートに追加します。
- フィルターが従属関係にしたがって表示されていることを確認します。これにより、ユーザーがより理解しやすいものになります。
- ユーザーがフィルターを使用できるように、「ユーザープロンプト」のままにします。
この例では、「Camp Region」、「Camp Country」、「Camp Name」がフィルターとして使用され、必要に応じてユーザーが複数の値を選択できるように、「一覧に含む」にすべて設定されています。
- 従属関係構造の第1レベルのフィルターをキャッシュします。
- 「データ」ステップまたは「表示」ステップで、メニューリボンの上部にある「フィルターの書式」メニューをクリックします。
- 表示されたドロップダウンメニューから第1レベルのフィルターを選択します。
- 「入力スタイル」メニューを開き、入力タイプを「一覧から値を選択」に設定して、値を「キャッシュされた値」に設定します。
- 「今すぐ更新」をクリックし、フィルター値の一覧を生成します。
- 第2レベルのフィルターが第1レベルに従属するように設定します。
- 「フィルターの書式」メニューで、左側にある「フィルター」一覧から第2レベルのフィルターを選択します。
- 「表示」メニューを開き、「従属先を表示」の値を第1レベルのフィルターに設定します。
- 前と同様に、第2レベルのフィルターをキャッシュします。
- このフィルターに対してステップ2の手順を繰り返します。
注意:従属関係とキャッシュが正しく設定されると、第1レベルのフィルターの値が選択されるまで、第2レベルのフィルターは非表示になります。第1レベルフィルターの値が変更されるたびに、第2レベルフィルターの値の一覧が更新されます。
- このフィルターに対してステップ2の手順を繰り返します。
- 残りのレベルについても従属関係を設定します。
- 残りの各フィルターレベルで、そのすぐ上のフィルターレベルへの従属関係を設定してから、そのフィルターをキャッシュする必要があります。
これらのステップを完了すると、レポートでフィルターが使用可能になり、それらのフィルターは上位レベルのフィルターが選択されると表示され、その選択が変更されると更新されます。
- 残りの各フィルターレベルで、そのすぐ上のフィルターレベルへの従属関係を設定してから、そのフィルターをキャッシュする必要があります。
用途
この例では、地域に「Europe」を選択すると、データベース内にレコードが存在する国が、第2レベルのフィルターに表示されています。
次に、国に「Germany」を選択すると、ドイツ内のすべてのサイトが表示されます。
最終的に、ユーザーは表示するサイトを定義して、フィルターを適用します。