| Oracle Discoverer Administration Edition Administration Guide Release 4.1 for Windows A86730-01 |
|
This chapter consists of the following sections:
This section describes the concepts of Items and Item Classes.
An Item, is a representation of a database table's column, in the EUL. By presenting columns as Items, Discoverer enables the administrator to make formatting changes, name changes and other similar changes enabling the user to clearly read the data. Items are stored in folders and can be created, deleted, and moved among different folders.
An item class is a group of items that share similar attributes. For example, an item called Product may contain a description of products and be part of the Product folder. A similar item, Product, may also be required in the Sales Revenue folder. For both items to share common attributes, such as a list of values, you create one item class which defines the values, and apply it to both items. Thus, you only have to define the attributes once. Without the item class, it would be necessary to define the attributes individually for each folder.
The administrator creates an item class to enable the following features:
These features help users build queries more quickly and easily. An item class lets the administrator define properties for the same item once, and then assign the item class to other items that share similar properties.
There is no specific link between the three features listed above, but they are all implemented using the item class mechanism. The item class can be created to support these features individually, or in combination. The only exception is that an alternative sort must relate to a list of values.
A list of values is the item's set of unique values. The values the item class references correspond to those found in a database column. If the database contained the following items and values:
| Item | Value |
|---|---|
|
Widgets |
4 |
|
Bolts |
28 |
|
Fan Belts |
34 |
|
Gaskets |
90 |
|
Brackets |
90 |
The item class would produce a list of five distinct values: widgets, bolts, fan belts, gaskets, brackets.
Lists of values are used by end users to refer to values in the database and to apply conditions and parameter values.
Lists of values are often generated automatically when the business area is first created (in Load Wizard: Step 4). The Item Class Wizard provides a way to extend a list of values to other items. For information on creating a list of values, see Section 10.4, "Creating an Item Class."
Items are normally sorted in ascending or descending order, according to ASCII sort values. However, end-users may require some data elements to be sorted in an alternative order. For example, a series of sales regions would be sorted alphabetically by default, such as East, North, South, and West. But the end user may need them sorted in this order: North, South, East, and West.
To create an alternative sort order, you must link together two items. One item defines the sort order and the other defines the list of values to be sorted. Figure 10-2 shows an alternative sort order: North=1, South=2, East=3 and West=4.
An alternative method is to use SQL to create a new table that has two columns defined - the item name and the sort value. You would then need to populate the columns with values. Table 10-2 shows an example.
| Region | Sort Value |
|---|---|
|
North |
1 |
|
South |
2 |
|
East |
3 |
|
West |
4 |
You can also use SQL*Plus to create a new table defining the alternative sort order. Then, using the Administration Edition, associate a list of values with the alternative sort column from either the alternative sort table or the existing database table--depending on the method you use to create the alternative sort order. The values (Region in Figure 10-2) are then sorted according to the alternative sort column - (Sort Value).
Before creating the alternative sort, keep these rules in mind.
For information about creating an Alternative Sort Item Class, see Section 10.4, "Creating an Item Class."
Drill to detail, or hyperdrills, enable users to drill to detail information using the relationships between data, rather than through hierarchical levels. A related item might be an item that was selected from the current source folder but is not currently in the query and not part of an existing item or date hierarchy structure. A drill-to-detail link allows the user to jump directly to related items, without having to drill through hierarchical levels. Although related items can be grouped in a hierarchy, if the Items are in different Folders, there must be Joins between them for the group to be valid.
There may be existing Joins between Folders in a drill-to-detail item class, but those Joins are not necessary for the hyperdrill to work. What is necessary is that the items are the same data type. For information about creating a hyperdrill, see Section 10.4, "Creating an Item Class."
Item properties are accessible through Item Properties dialog boxes. This section shows you how to enhance the user's view of the data by editing item properties. Figure 10-1 shows an example Item Properties dialog box.
This section describes how to edit an item's properties.
There are four ways to do this:
For more information on the fields on this dialog box, click Help.
The following steps show you how to set common properties for more than one item at a time:
There are three ways to do this:
All properties that are common to each of the selected Items are displayed. If the data for a field is not common to each of the selected Items, the field is blank.
For more information on the fields on this dialog box, click Help.
In the Item Properties dialog, the Content Type setting defines the Item's data type. The Content Type field has two possible settings, (see also Chapter 4.10.4, "Modifying an Item's Content Type"):
NOTE: For more information about Oracle Content Types, refer to the section Datatypes in the Oracle 8i SQL Reference, Release 2 (8.1.6), Part Number A76989-01.
An item class can define alternative sorts, provide hyperdrills, and / or reference a list of values in the database.
This section describes how to create an Item Class using the Item Class Wizard. It consists of the following topics:
You may not need to follow every step. The choices you make in the wizard determine the exact path you need to take.
There are three ways of doing this:
This page of the wizard enables you to specify the attributes for your new Item Class.
For more information about these attributes, see Section 10.1.2, "Item Classes.".
Note, selecting Alternative sort automatically selects List of values.
This opens the next page of the Item Class Wizard.
This page of the wizard (see Figure 10-3) enables you to select the item that contains the list of values you want for your new Item Class.
Discoverer uses a SELECT DISTINCT query to retrieve a List of Values. If you select an item in a folder with a large number of rows compared to the number of distinct values, then the query can be inefficient. It is much better to select an item from a small "dimension" table attached to the FACT table rather than using the FACT table itself. If such a table does not exist, it might be worth creating the table to speed up the List of Values process.
Alternatively if you have a small number of values, use a custom folder to create a local List of Values within the End User Layer. For example, if you want a list of values for North, South, East, and West, create a custom folder called Region_lov and type in the following SQL statements:
SELECT `NORTH' REGION FROM sys.dual
UNION
SELECT `SOUTH' REGION FROM sys.dual
UNION
SELECT `EAST' REGION FROM sys.dual
UNION
SELECT `WEST' REGION FROM sys.dual
This query creates one item called Region, that can now be used as a List of Values to optimize performance.
For more information about custom folders, see Section 6.5, "Creating Custom Folders."
This opens the next page of the Item Class Wizard.
This page of the wizard (see Figure 10-4), enables you to select the item that contains the alternative sort sequence for your new Item Class.
An alternative method of creating an alternative sort for a list of values (if you have a small number of values to sort) is to use a custom folder.
You can modify the Region_lov custom folder (described in previous section) to include an Alternative Sort sequence.
For example, if you want the list of values sorted in the following order: West, North, South, East you need to edit the SQL in the Region_lov custom folder so that it appears as follows:
SELECT `NORTH' REGION,
4 ALTERNATIVE_SORT
FROM sys.dual,
UNION
SELECT `SOUTH' REGION,
2 ALTERNATIVE_SORT
FROM sys.dual
UNION
SELECT `EAST' REGION,
3 ALTERNATIVE_SORT
FROM sys.dual
UNION
SELECT `WEST' REGION,
1 ALTERNATIVE_SORT
FROM sys.dual
This query creates a single item called Region that can be used as a List of Values and an alternative sort sequence.
This item must:
When you select an item, the item's description is displayed at the bottom of the wizard.
This opens the next page of the Item Class Wizard.
This page of the wizard (see Figure 10-5) enables you to select the items that use your new item class.
If you selected Drill to detail on the first page of the Item Class wizard, end users will be able to "Drill to detail" between any of the items that you select on this page.
This opens the next page of the Item Class Wizard.
This page of the wizard (see Figure 10-6) enables you to specify a name and description for your new Item Class.
This section describes how to edit an existing Item Class.
There are two ways of doing this:
The Edit Item Class dialog box consists of four pages. These pages resemble the pages in the Item Class Wizard and enable you to edit the settings you specified when you created the Item Class.
This section describes how to add an Item to an Item Class.
There are three ways of doing this:
There are two ways of doing this:
There are three ways of moving items from one list to the other:
To select more than one item at once, hold down Ctrl while you click on the items.
The Available items drop-down list enables you to select items from any open business area.
For more information, see Section 10.5, "Editing an Item Class."
There are three ways to do this:
For more information, see Section 10.2, "Editing Item Properties."
This section describes how to view the Items that belong to a specific Item Class.
This reveals two objects under the Item Class.
This displays the a list of Items that belong to this Item Class.
This section describes how to remove items from an Item Class.
There are two ways to do this:
There are three ways of doing this:
To select more than one item at once, hold down Ctrl while you click on the items.
Discoverer Administration Edition displays the Confirm Delete dialog box. This works in the same way as described in Section 10.10, "Deleting Items & Item Classes."
There are two ways of doing this:
There are three ways of moving items from one list to the other:
To select more than one item at once, hold down Ctrl while you click on the items.
For more information, see Section 10.5, "Editing an Item Class."
There are three ways to do this:
For more information, see Section 10.2, "Editing Item Properties."
This section describes how to view the List of Values associated with an Item.
There are two places where you can view a List of Values:
You may be warned that retrieving the List of Values may take a long time. When you retrieve a List of Values, Discoverer submits a SELECT DISTINCT query to the database (which selects the distinct set of values for the item). If there is a large number of values in the database, retrieving the list can take some time. The End User Layer has a record of the length of time it takes to retrieve the values. If this length of time is greater than 15 seconds, Discoverer will display a warning. This limit can be changed in Discoverer Plus under Tools | Options | Query Governor.
To view the List of Values associated with an Item Class:
This reveals two objects under the Item Class.
You may be warned that retrieving the List of Values may take a long time.
This displays the List of Values for the Item Class (see Figure 10-11).
When you retrieve a List of Values, Discoverer submits a SELECT DISTINCT query to the database (which selects the distinct set of values for the item). If there is a large number of values in the database, retrieving the list can take some time. The End User Layer has a record of the length of time it takes to retrieve the values. If this length of time is greater than 15 seconds, Discoverer will display a warning.
This section describes how to delete Items and Item Classes.
To select more than one item at once, hold down Ctrl while you click on the Items or Item Classes.
There are three ways to do this:
This opens the Confirm Delete dialog box.
|
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|